MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / getMinimumTime

Method getMinimumTime

src/statTimer/statisticalTimer.CPU.cpp:302–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302cl_double
303CpuStatTimer::getMinimumTime( size_t id ) const
304{
305 clkVector::const_iterator iter = std::min_element( clkTicks.at( id ).begin( ), clkTicks.at( id ).end( ) );
306
307 if( iter != clkTicks.at( id ).end( ) )
308 {
309 if( normalize )
310 return static_cast<cl_double>( *iter ) / clkFrequency;
311 else
312 return static_cast<cl_double>( *iter );
313 }
314 else
315 return 0;
316}
317
318std::vector< size_t >
319CpuStatTimer::pruneOutliers( size_t id , cl_double multiple )

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected