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

Method Reserve

src/statTimer/statisticalTimer.GPU.cpp:162–171  ·  view source on GitHub ↗

The caller can pre-allocate memory, to improve performance. nEvents is an approximate value for how many seperate events the caller will think they will need, and nSamples is a hint on how many samples we think we will take per event

Source from the content-addressed store, hash-verified

160// they will need, and nSamples is a hint on how many samples we think we will take
161// per event
162void
163GpuStatTimer::Reserve( size_t nE, size_t nS )
164{
165 Clear( );
166 nEvents = std::max< size_t >( 1, nE );
167 nSamples = std::max< size_t >( 1, nS );
168
169 labelID.reserve( nEvents );
170 timerData.resize( nEvents );
171}
172
173void
174GpuStatTimer::Reset( )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected