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

Method ScalPerformanceTest

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

Source from the content-addressed store, hash-verified

115
116template <typename ElemType>
117ScalPerformanceTest<ElemType>::ScalPerformanceTest(
118 BlasFunction fn,
119 TestParams *params) : PerformanceTest(fn,(problem_size_t) ( (2 * params->N) * sizeof(ElemType) ) ), params_(*params), mobjX_(NULL)
120{
121
122 X_ = backX_ = NULL;
123 mobjX_= NULL;
124 lengthX = 1 + (params->N - 1) * abs(params_.incx);
125 try {
126 X_ = new ElemType[lengthX + params_.offBX];
127 backX_ = new ElemType[lengthX + params_.offBX];
128 }
129 catch(bad_alloc& ba) {
130 X_ = backX_ = NULL; // areResourcesSufficient() will handle the rest and return
131 mobjX_= NULL;
132 ba = ba;
133 }
134
135 base_ = ::clMath::BlasBase::getInstance();
136}
137
138template <typename ElemType>
139ScalPerformanceTest<ElemType>::~ScalPerformanceTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected