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

Method etalonPerfSingle

src/tests/performance/perf-scal.cpp:188–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188template <typename ElemType> nano_time_t
189ScalPerformanceTest<ElemType>::etalonPerfSingle(void)
190{
191 nano_time_t time = 0;
192 bool is_css_zds = (params_.K == 1)? true: false; // K indicates csscal/zdscal
193
194#ifdef PERF_TEST_WITH_ACML
195
196 time = getCurrentTime();
197 clMath::blas::scal(is_css_zds, params_.N, alpha_, X_, params_.offBX, params_.incx);
198 time = getCurrentTime() - time;
199
200#endif // PERF_TEST_WITH_ACML
201
202 return time;
203}
204
205
206template <typename ElemType> nano_time_t

Callers

nothing calls this directly

Calls 1

getCurrentTimeFunction · 0.50

Tested by

no test coverage detected