MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / getUniqueID

Method getUniqueID

src/client/statisticalTimer.cpp:179–197  ·  view source on GitHub ↗

This function's purpose is to provide a mapping from a 'friendly' human readable text string to an index into internal data structures.

Source from the content-addressed store, hash-verified

177// This function's purpose is to provide a mapping from a 'friendly' human readable text string
178// to an index into internal data structures.
179StatisticalTimer::sTimerID
180StatisticalTimer::getUniqueID( const std::string& label, unsigned int groupID )
181{
182 // I expect labelID will hardly ever grow beyond 30, so it's not of any use
183 // to keep this sorted and do a binary search
184
185 labelPair sItem = std::make_pair( label, groupID );
186
187 stringVector::iterator iter;
188 iter = std::find( labelID.begin(), labelID.end(), sItem );
189
190 if( iter != labelID.end( ) )
191 return std::distance( labelID.begin( ), iter );
192
193 labelID.push_back( sItem );
194
195 return labelID.size( ) - 1;
196
197}
198
199double
200StatisticalTimer::getMean( sTimerID id ) const

Callers 15

xSyrMethod · 0.80
xHer2Method · 0.80
xHerMethod · 0.80
xTrsvMethod · 0.80
clGemmMethod · 0.80
xHemmMethod · 0.80
xGeruMethod · 0.80
xHerkMethod · 0.80
xSymvMethod · 0.80
xHemvMethod · 0.80
xSyr2Method · 0.80
xTrmvMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected