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

Method Spr2PerformanceTest

src/tests/performance/perf-spr2.cpp:116–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected