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

Method getMean

src/statTimer/statisticalTimer.GPU.cpp:304–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304std::vector< StatData >
305GpuStatTimer::getMean( size_t id )
306{
307 // Prep the data; query openCL for the timer information
308 queryOpenCL( id );
309
310 std::vector< StatData > meanVec;
311 for( size_t s = 0; s < timerData.at( id ).size( ); ++s )
312 {
313 Accumulator< StatData > sum = std::for_each( timerData.at( id ).at( s ).begin( ), timerData.at( id ).at( s ).end( ),
314 Accumulator< StatData >() );
315
316 StatData tmp = timerData[ id ][ s ].front( );
317 tmp.doubleNanoSec = static_cast< cl_double >( sum.acc.deltaNanoSec ) / timerData.at( id ).at( s ).size( );
318 meanVec.push_back( tmp );
319 }
320
321 return meanVec;
322}
323
324std::vector< StatData >
325GpuStatTimer::getVariance( size_t id )

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected