@@ -57,20 +57,20 @@ def benchmarks(self) -> list[Benchmark]:
5757
5858
5959class VelocityBase (Benchmark ):
60- def __init__ (self , name : str , bin_name : str , vb : VelocityBench , unit : str ):
61- super ().__init__ (vb )
62- self .vb = vb
60+ def __init__ (self , suite : VelocityBench , name : str , bin_name : str , unit : str ):
61+ super ().__init__ (suite )
62+ self .suite = suite
6363 self .bench_name = name
6464 self .bin_name = bin_name
6565 self .unit = unit
6666
6767 @property
6868 def src_dir (self ) -> Path :
69- return self .vb .project .src_dir / self .bench_name / "SYCL"
69+ return self .suite .project .src_dir / self .bench_name / "SYCL"
7070
7171 @property
7272 def build_dir (self ) -> Path :
73- return self .vb .project .build_dir / self .bench_name
73+ return self .suite .project .build_dir / self .bench_name
7474
7575 @property
7676 def benchmark_bin (self ) -> Path :
@@ -177,8 +177,8 @@ def run(
177177 command = command ,
178178 env = env_vars ,
179179 unit = self .unit ,
180- git_url = self .vb .git_url (),
181- git_hash = self .vb .git_hash (),
180+ git_url = self .suite .git_url (),
181+ git_hash = self .suite .git_hash (),
182182 )
183183 ]
184184
@@ -187,8 +187,8 @@ def teardown(self):
187187
188188
189189class Hashtable (VelocityBase ):
190- def __init__ (self , vb : VelocityBench ):
191- super ().__init__ ("hashtable" , "hashtable_sycl" , vb , "M keys/sec" )
190+ def __init__ (self , suite : VelocityBench ):
191+ super ().__init__ (suite , "hashtable" , "hashtable_sycl" , "M keys/sec" )
192192
193193 def name (self ):
194194 return "Velocity-Bench Hashtable"
@@ -219,8 +219,8 @@ def get_tags(self):
219219
220220
221221class Bitcracker (VelocityBase ):
222- def __init__ (self , vb : VelocityBench ):
223- super ().__init__ ("bitcracker" , "bitcracker" , vb , "s" )
222+ def __init__ (self , suite : VelocityBench ):
223+ super ().__init__ (suite , "bitcracker" , "bitcracker" , "s" )
224224
225225 def name (self ):
226226 return "Velocity-Bench Bitcracker"
@@ -234,7 +234,7 @@ def description(self) -> str:
234234
235235 def bin_args (self ) -> list [str ]:
236236 self .data_path = os .path .join (
237- self .vb .project .src_dir , "bitcracker" , "hash_pass"
237+ self .suite .project .src_dir , "bitcracker" , "hash_pass"
238238 )
239239
240240 return [
@@ -262,8 +262,8 @@ def get_tags(self):
262262
263263
264264class SobelFilter (VelocityBase ):
265- def __init__ (self , vb : VelocityBench ):
266- super ().__init__ ("sobel_filter" , "sobel_filter" , vb , "ms" )
265+ def __init__ (self , suite : VelocityBench ):
266+ super ().__init__ (suite , "sobel_filter" , "sobel_filter" , "ms" )
267267
268268 def download_deps (self ):
269269 self .download (
@@ -311,8 +311,8 @@ def get_tags(self):
311311
312312
313313class QuickSilver (VelocityBase ):
314- def __init__ (self , vb : VelocityBench ):
315- super ().__init__ ("QuickSilver" , "qs" , vb , "MMS/CTT" )
314+ def __init__ (self , suite : VelocityBench ):
315+ super ().__init__ (suite , "QuickSilver" , "qs" , "MMS/CTT" )
316316
317317 def run (
318318 self ,
@@ -344,7 +344,7 @@ def lower_is_better(self):
344344
345345 def bin_args (self ) -> list [str ]:
346346 self .data_path = os .path .join (
347- self .vb .project .src_dir , "QuickSilver" , "Examples" , "AllScattering"
347+ self .suite .project .src_dir , "QuickSilver" , "Examples" , "AllScattering"
348348 )
349349
350350 return ["-i" , f"{ self .data_path } /scatteringOnly.inp" ]
@@ -366,8 +366,8 @@ def get_tags(self):
366366
367367
368368class Easywave (VelocityBase ):
369- def __init__ (self , vb : VelocityBench ):
370- super ().__init__ ("easywave" , "easyWave_sycl" , vb , "ms" )
369+ def __init__ (self , suite : VelocityBench ):
370+ super ().__init__ (suite , "easywave" , "easyWave_sycl" , "ms" )
371371
372372 def download_deps (self ):
373373 self .download (
@@ -433,11 +433,11 @@ def get_tags(self):
433433
434434
435435class CudaSift (VelocityBase ):
436- def __init__ (self , vb : VelocityBench ):
437- super ().__init__ ("cudaSift" , "cudaSift" , vb , "ms" )
436+ def __init__ (self , suite : VelocityBench ):
437+ super ().__init__ (suite , "cudaSift" , "cudaSift" , "ms" )
438438
439439 def download_deps (self ):
440- images = os .path .join (self .vb .project .src_dir , self .bench_name , "inputData" )
440+ images = os .path .join (self .suite .project .src_dir , self .bench_name , "inputData" )
441441 dest = os .path .join (options .workdir , "inputData" )
442442 if not os .path .exists (dest ):
443443 shutil .copytree (images , dest )
@@ -464,8 +464,8 @@ def get_tags(self):
464464
465465
466466class DLCifar (VelocityBase ):
467- def __init__ (self , vb : VelocityBench ):
468- super ().__init__ ("dl-cifar" , "dl-cifar_sycl" , vb , "s" )
467+ def __init__ (self , suite : VelocityBench ):
468+ super ().__init__ (suite , "dl-cifar" , "dl-cifar_sycl" , "s" )
469469
470470 def ld_libraries (self ):
471471 return get_oneapi ().ld_libraries ()
@@ -518,8 +518,8 @@ def get_tags(self):
518518
519519
520520class DLMnist (VelocityBase ):
521- def __init__ (self , vb : VelocityBench ):
522- super ().__init__ ("dl-mnist" , "dl-mnist-sycl" , vb , "s" )
521+ def __init__ (self , suite : VelocityBench ):
522+ super ().__init__ (suite , "dl-mnist" , "dl-mnist-sycl" , "s" )
523523
524524 def ld_libraries (self ):
525525 return get_oneapi ().ld_libraries ()
@@ -606,8 +606,8 @@ def get_tags(self):
606606
607607
608608class SVM (VelocityBase ):
609- def __init__ (self , vb : VelocityBench ):
610- super ().__init__ ("svm" , "svm_sycl" , vb , "s" )
609+ def __init__ (self , suite : VelocityBench ):
610+ super ().__init__ (suite , "svm" , "svm_sycl" , "s" )
611611
612612 def ld_libraries (self ):
613613 return get_oneapi ().ld_libraries ()
0 commit comments