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

Method runInstance

src/tests/performance/perf-hpmv.cpp:68–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

runMethod · 0.45

Tested by

no test coverage detected