10
10
from .base import Benchmark , Suite
11
11
from .result import Result
12
12
from options import options
13
-
13
+ from enum import Enum
14
14
15
15
class ComputeBench (Suite ):
16
16
def __init__ (self , directory ):
@@ -27,7 +27,7 @@ def setup(self):
27
27
self .directory ,
28
28
"compute-benchmarks-repo" ,
29
29
"https://github.com/intel/compute-benchmarks.git" ,
30
- "578a7ac6f9bc48f6c2b408ef64a19a2ef9a216e7 " ,
30
+ "9369275026229b182bc4a555b73c2ec995a9e2b7 " ,
31
31
)
32
32
build_path = create_build_path (self .directory , "compute-benchmarks-build" )
33
33
@@ -80,10 +80,14 @@ def benchmarks(self) -> list[Benchmark]:
80
80
MemcpyExecute (self , 10 , 16 , 1024 , 10000 , 0 , 1 , 1 ),
81
81
MemcpyExecute (self , 4096 , 1 , 1024 , 10 , 0 , 1 , 0 ),
82
82
MemcpyExecute (self , 4096 , 4 , 1024 , 10 , 0 , 1 , 0 ),
83
- GraphApiSinKernelGraphSYCL (self , 0 , 10 ),
84
- GraphApiSinKernelGraphSYCL (self , 1 , 10 ),
85
- GraphApiSinKernelGraphSYCL (self , 0 , 100 ),
86
- GraphApiSinKernelGraphSYCL (self , 1 , 100 ),
83
+ GraphApiSinKernelGraph (self , RUNTIMES .SYCL , 0 , 5 ),
84
+ GraphApiSinKernelGraph (self , RUNTIMES .SYCL , 1 , 5 ),
85
+ GraphApiSinKernelGraph (self , RUNTIMES .SYCL , 0 , 100 ),
86
+ GraphApiSinKernelGraph (self , RUNTIMES .SYCL , 1 , 100 ),
87
+ GraphApiSinKernelGraph (self , RUNTIMES .LEVEL_ZERO , 0 , 5 ),
88
+ GraphApiSinKernelGraph (self , RUNTIMES .LEVEL_ZERO , 1 , 5 ),
89
+ GraphApiSinKernelGraph (self , RUNTIMES .LEVEL_ZERO , 0 , 100 ),
90
+ GraphApiSinKernelGraph (self , RUNTIMES .LEVEL_ZERO , 1 , 100 ),
87
91
# Submit
88
92
GraphApiSubmitExecGraph (self , 0 , 1 , 10 ),
89
93
GraphApiSubmitExecGraph (self , 1 , 1 , 10 ),
@@ -99,6 +103,10 @@ def benchmarks(self) -> list[Benchmark]:
99
103
SubmitKernelUR (self , 0 , 0 ),
100
104
SubmitKernelUR (self , 1 , 0 ),
101
105
SubmitKernelUR (self , 1 , 1 ),
106
+ GraphApiSinKernelGraph (self , RUNTIMES .UR , 0 , 5 ),
107
+ GraphApiSinKernelGraph (self , RUNTIMES .UR , 1 , 5 ),
108
+ GraphApiSinKernelGraph (self , RUNTIMES .UR , 0 , 100 ),
109
+ GraphApiSinKernelGraph (self , RUNTIMES .UR , 1 , 100 ),
102
110
]
103
111
104
112
return benches
@@ -420,23 +428,34 @@ def bin_args(self) -> list[str]:
420
428
]
421
429
422
430
423
- class GraphApiSinKernelGraphSYCL (ComputeBenchmark ):
424
- def __init__ (self , bench , withGraphs , numKernels ):
431
+ class RUNTIMES (Enum ):
432
+ SYCL = "sycl"
433
+ LEVEL_ZERO = "l0"
434
+ UR = "ur"
435
+
436
+
437
+ class GraphApiSinKernelGraph (ComputeBenchmark ):
438
+ def __init__ (self , bench , runtime : RUNTIMES , withGraphs , numKernels ):
425
439
self .withGraphs = withGraphs
426
440
self .numKernels = numKernels
427
- super ().__init__ (bench , "graph_api_benchmark_sycl" , "SinKernelGraph" )
441
+ self .runtime = runtime
442
+ super ().__init__ (
443
+ bench , f"graph_api_benchmark_{ runtime .value } " , "SinKernelGraph"
444
+ )
428
445
429
446
def explicit_group (self ):
430
- return "SinKernelGraph"
447
+ return f "SinKernelGraph { self . numKernels } "
431
448
432
449
def name (self ):
433
- return f"graph_api_benchmark_sycl SinKernelGraph graphs:{ self .withGraphs } , numKernels:{ self .numKernels } "
450
+ return f"graph_api_benchmark_ { self . runtime . value } SinKernelGraph graphs:{ self .withGraphs } , numKernels:{ self .numKernels } "
434
451
435
452
def bin_args (self ) -> list [str ]:
436
453
return [
437
- "--iterations=100 " ,
454
+ "--iterations=10000 " ,
438
455
f"--numKernels={ self .numKernels } " ,
439
456
f"--withGraphs={ self .withGraphs } " ,
457
+ "--withCopyOffload=1" ,
458
+ "--immediateAppendCmdList=0" ,
440
459
]
441
460
442
461
0 commit comments