[CORE][TOOLS][BENCH] Disabled normalization for auto-tuning
This commit is contained in:
committed by
Philippe Tillet
parent
9cb3fd899a
commit
eadaeab299
@@ -41,9 +41,9 @@ inline double bench(std::function<void()> const & op, driver::stream * stream, b
|
|||||||
while(total_time*1e-9 < 1e-2){
|
while(total_time*1e-9 < 1e-2){
|
||||||
float norm = 1;
|
float norm = 1;
|
||||||
// normalize clock if possible to reduce noise in auto-tuning
|
// normalize clock if possible to reduce noise in auto-tuning
|
||||||
if(normalize)
|
// if(normalize)
|
||||||
if(auto cu_device = dynamic_cast<const triton::driver::cu_device*>(stream->context()->device()))
|
// if(auto cu_device = dynamic_cast<const triton::driver::cu_device*>(stream->context()->device()))
|
||||||
norm = (float)cu_device->current_sm_clock()/cu_device->max_sm_clock();
|
// norm = (float)cu_device->current_sm_clock()/cu_device->max_sm_clock();
|
||||||
tmr.start();
|
tmr.start();
|
||||||
op();
|
op();
|
||||||
stream->synchronize();
|
stream->synchronize();
|
||||||
|
Reference in New Issue
Block a user