Skip to content

Commit dd5cc2e

Browse files
committed
[harness] Fix runner - pass device to timer
1 parent f7d0cd7 commit dd5cc2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ai_bench/harness/runner/kernel_bench_runner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,7 @@ def run_kernels(self):
102102
continue
103103

104104
print(f"Benchmarking: {variant}")
105-
meas = testing.time(fn, args, warmup=self.warmup, rep=self.rep)
105+
meas = testing.time(
106+
fn, args, warmup=self.warmup, rep=self.rep, device=self.device
107+
)
106108
print(f"time: {meas}us")

0 commit comments

Comments
 (0)