From 6c64b94386033a4b823541c065c66439da57e6b7 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 30 Apr 2021 12:11:52 -0500 Subject: [PATCH] Use CPU time as the timer for benchmarks --- benchmarks/run_sumpy_kernels.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/benchmarks/run_sumpy_kernels.py b/benchmarks/run_sumpy_kernels.py index 898cd467f..92d29108c 100644 --- a/benchmarks/run_sumpy_kernels.py +++ b/benchmarks/run_sumpy_kernels.py @@ -3,6 +3,7 @@ import numpy as np import pyopencl as cl import logging from dataclasses import dataclass +import time logger = logging.getLogger(__name__) @@ -110,6 +111,11 @@ class SumpyBenchmarkSuite: time_schedule.timeout = 600.0 time_generate_code.timeout = 600.0 + # Use CPU time as the timer + time_instantiate.timer = time.process_time + time_schedule.timer = time.process_time + time_generate_code.timer = time.process_time + # No warmup is needed time_instantiate.warmup_time = 0 time_schedule.warmup_time = 0 -- GitLab