From 1fb113ea4ccd0efeba327a5a7c1748a13f758074 Mon Sep 17 00:00:00 2001 From: Igor Chorazewicz Date: Wed, 11 Dec 2024 23:43:17 +0000 Subject: [PATCH] [Benchmarks] add SubmitKernel run with MeasureCompletion=1 --- scripts/benchmarks/benches/compute.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/benchmarks/benches/compute.py b/scripts/benchmarks/benches/compute.py index 229a50e84d..e883296b46 100644 --- a/scripts/benchmarks/benches/compute.py +++ b/scripts/benchmarks/benches/compute.py @@ -75,8 +75,9 @@ def benchmarks(self) -> list[Benchmark]: if options.ur is not None: benches += [ - SubmitKernelUR(self, 0), - SubmitKernelUR(self, 1), + SubmitKernelUR(self, 0, 0), + SubmitKernelUR(self, 1, 0), + SubmitKernelUR(self, 1, 1), ] return benches @@ -177,13 +178,14 @@ def bin_args(self) -> list[str]: ] class SubmitKernelUR(ComputeBenchmark): - def __init__(self, bench, ioq): + def __init__(self, bench, ioq, measureCompletion): self.ioq = ioq + self.measureCompletion = measureCompletion super().__init__(bench, "api_overhead_benchmark_ur", "SubmitKernel") def name(self): order = "in order" if self.ioq else "out of order" - return f"api_overhead_benchmark_ur SubmitKernel {order}" + return f"api_overhead_benchmark_ur SubmitKernel {order}" + (" with measure completion" if self.measureCompletion else "") def explicit_group(self): return "SubmitKernel" @@ -192,7 +194,7 @@ def bin_args(self) -> list[str]: return [ f"--Ioq={self.ioq}", "--DiscardEvents=0", - "--MeasureCompletion=0", + f"--MeasureCompletion={self.measureCompletion}", "--iterations=100000", "--Profiling=0", "--NumKernels=10",