| 186 | } |
| 187 | |
| 188 | template <typename ElemType> nano_time_t |
| 189 | ScalPerformanceTest<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 | |
| 206 | template <typename ElemType> nano_time_t |
nothing calls this directly
no test coverage detected