From eadaeab299d73ba55872cfcd089c7c35b2a2ae2d Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Fri, 6 Mar 2020 18:41:06 -0500 Subject: [PATCH] [CORE][TOOLS][BENCH] Disabled normalization for auto-tuning --- include/triton/tools/bench.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/triton/tools/bench.hpp b/include/triton/tools/bench.hpp index e1807f25e..e132e3b83 100644 --- a/include/triton/tools/bench.hpp +++ b/include/triton/tools/bench.hpp @@ -41,9 +41,9 @@ inline double bench(std::function const & op, driver::stream * stream, b while(total_time*1e-9 < 1e-2){ float norm = 1; // normalize clock if possible to reduce noise in auto-tuning - if(normalize) - if(auto cu_device = dynamic_cast(stream->context()->device())) - norm = (float)cu_device->current_sm_clock()/cu_device->max_sm_clock(); +// if(normalize) +// if(auto cu_device = dynamic_cast(stream->context()->device())) +// norm = (float)cu_device->current_sm_clock()/cu_device->max_sm_clock(); tmr.start(); op(); stream->synchronize();