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

Method Hpr2PerformanceTest

src/tests/performance/perf-hpr2.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118template <typename ElemType>
119Hpr2PerformanceTest<ElemType>::Hpr2PerformanceTest(
120 BlasFunction fn,
121 TestParams *params) : PerformanceTest(fn, (problem_size_t)((((params->N * params->N) + (params->N)) * 3 ) * sizeof(ElemType))),
122 params_(*params), mobjAP_(NULL), mobjX_(NULL), mobjY_(NULL)
123{
124 AP_ = new ElemType[((params_.N * (params_.N + 1))/2) + params_.offa];
125 X_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incx) + params_.offBX];
126 Y_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incy) + params_.offCY];
127 backAP_ = new ElemType[((params_.N * (params_.N + 1))/2) + params_.offa];
128
129 base_ = ::clMath::BlasBase::getInstance();
130}
131
132template <typename ElemType>
133Hpr2PerformanceTest<ElemType>::~Hpr2PerformanceTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected