| 218 | } |
| 219 | |
| 220 | template <typename ElemType> nano_time_t |
| 221 | GemvPerformanceTest<ElemType>::etalonPerfSingle(void) |
| 222 | { |
| 223 | nano_time_t time = 0; |
| 224 | clblasOrder order; |
| 225 | size_t lda; |
| 226 | |
| 227 | #ifndef PERF_TEST_WITH_ROW_MAJOR |
| 228 | if (params_.order == clblasRowMajor) { |
| 229 | cerr << "Row major order is not allowed" << endl; |
| 230 | return NANOTIME_ERR; |
| 231 | } |
| 232 | #endif |
| 233 | |
| 234 | memcpy(C_, backC_, params_.rowsC * params_.columnsC * sizeof(ElemType)); |
| 235 | order = params_.order; |
| 236 | lda = params_.lda; |
| 237 | |
| 238 | #ifdef PERF_TEST_WITH_ACML |
| 239 | |
| 240 | // #warning "GEMV performance test not implemented" |
| 241 | time = NANOTIME_MAX; |
| 242 | order = order; |
| 243 | lda = lda; |
| 244 | |
| 245 | #endif // PERF_TEST_WITH_ACML |
| 246 | |
| 247 | return time; |
| 248 | } |
| 249 | |
| 250 | |
| 251 | template <typename ElemType> nano_time_t |
nothing calls this directly
no outgoing calls
no test coverage detected