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

Method getMinimumTime

src/statTimer/statisticalTimer.GPU.cpp:364–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364std::vector< StatData >
365GpuStatTimer::getMinimumTime( size_t id )
366{
367 // Prep the data; query openCL for the timer information
368 queryOpenCL( id );
369
370 std::vector< StatData > minTime;
371 for( size_t s = 0; s < timerData.at( id ).size( ); ++s )
372 {
373 StatDataVec::iterator iter
374 = std::min_element( timerData.at( id ).at( s ).begin( ), timerData.at( id ).at( s ).end( ) );
375
376 if( iter != timerData.at( id ).at( s ).end( ) )
377 {
378 iter->doubleNanoSec = static_cast< cl_double >( iter->deltaNanoSec ) / timerData.at( id ).at( s ).size( );
379 minTime.push_back( *iter );
380 }
381 else
382 return std::vector< StatData >( );
383 }
384
385 return minTime;
386}
387
388std::vector< size_t >
389GpuStatTimer::pruneOutliers( size_t id , cl_double multiple )

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected