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

Method getMinimumTime

src/clsparseTimer/clsparseTimer-host.cpp:303–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

atMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected