| 67 | virtual nano_time_t clblasPerfSingle(void); |
| 68 | |
| 69 | static void runInstance(BlasFunction fn, TestParams *params) |
| 70 | { |
| 71 | RotPerformanceTest<ElemType> perfCase(fn, params); |
| 72 | int ret = 0; |
| 73 | int opFactor; |
| 74 | BlasBase *base; |
| 75 | |
| 76 | base = clMath::BlasBase::getInstance(); |
| 77 | |
| 78 | opFactor =1; |
| 79 | |
| 80 | if (((fn == FN_DROT) || (fn == FN_ZDROT)) && |
| 81 | !base->isDevSupportDoublePrecision()) |
| 82 | { |
| 83 | std::cerr << ">> WARNING: The target device doesn't support native " |
| 84 | "double precision floating point arithmetic" << |
| 85 | std::endl << ">> Test skipped" << std::endl; |
| 86 | return; |
| 87 | } |
| 88 | |
| 89 | if (!perfCase.areResourcesSufficient(params)) |
| 90 | { |
| 91 | std::cerr << ">> RESOURCE CHECK: Skip due to unsufficient resources" << |
| 92 | std::endl; |
| 93 | return; |
| 94 | } |
| 95 | else |
| 96 | { |
| 97 | ret = perfCase.run(opFactor); |
| 98 | } |
| 99 | |
| 100 | ASSERT_GE(ret, 0) << "Fatal error: can not allocate resources or " |
| 101 | "perform an OpenCL request!" << endl; |
| 102 | EXPECT_EQ(0, ret) << "The OpenCL version is slower in the case" << endl; |
| 103 | } |
| 104 | |
| 105 | private: |
| 106 | RotPerformanceTest(BlasFunction fn, TestParams *params); |
nothing calls this directly
no test coverage detected