Skip to content

Commit 43d33e2

Browse files
authored
Merge pull request #2424 from pbalcer/l0-submit
[benchmarks] add L0 submit kernel benchmark
2 parents e3d88c2 + 78526f6 commit 43d33e2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

scripts/benchmarks/benches/compute.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def benchmarks(self) -> list[Benchmark]:
5050
return []
5151

5252
benches = [
53+
SubmitKernelL0(self, 0),
54+
SubmitKernelL0(self, 1),
5355
SubmitKernelSYCL(self, 0),
5456
SubmitKernelSYCL(self, 1),
5557
QueueInOrderMemcpy(self, 0, 'Device', 'Device', 1024),
@@ -184,6 +186,26 @@ def bin_args(self) -> list[str]:
184186
"--KernelExecTime=1"
185187
]
186188

189+
class SubmitKernelL0(ComputeBenchmark):
190+
def __init__(self, bench, ioq):
191+
self.ioq = ioq
192+
super().__init__(bench, "api_overhead_benchmark_l0", "SubmitKernel")
193+
194+
def name(self):
195+
order = "in order" if self.ioq else "out of order"
196+
return f"api_overhead_benchmark_l0 SubmitKernel {order}"
197+
198+
def bin_args(self) -> list[str]:
199+
return [
200+
f"--Ioq={self.ioq}",
201+
"--DiscardEvents=0",
202+
"--MeasureCompletion=0",
203+
"--iterations=100000",
204+
"--Profiling=0",
205+
"--NumKernels=10",
206+
"--KernelExecTime=1"
207+
]
208+
187209
class ExecImmediateCopyQueue(ComputeBenchmark):
188210
def __init__(self, bench, ioq, isCopyOnly, source, destination, size):
189211
self.ioq = ioq

0 commit comments

Comments
 (0)