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

Method SpmvPerformanceTest

src/tests/performance/perf-spmv.cpp:120–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119template <typename ElemType>
120SpmvPerformanceTest<ElemType>::SpmvPerformanceTest(
121 BlasFunction fn,
122 TestParams *params) : PerformanceTest( fn, (problem_size_t)( ( ((2 * (( params->N * (params->N)) + params->N)) ) * sizeof(ElemType) ) ) ),
123 params_(*params), mobjAP_(NULL), mobjX_(NULL)
124{
125
126 AP_ = new ElemType[((params_.N * (params_.N + 1)) / 2 ) + params_.offA];
127 X_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incx) + params_.offBX];
128 Y_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incy) + params_.offCY];
129 backY_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incy) + params_.offCY];
130 alpha = convertMultiplier<ElemType>(params_.alpha);
131 beta = convertMultiplier<ElemType>(params_.beta);
132
133 base_ = ::clMath::BlasBase::getInstance();
134
135 mobjAP_ = NULL;
136 mobjX_ = NULL;
137 mobjY_ = NULL;
138}
139
140template <typename ElemType>
141SpmvPerformanceTest<ElemType>::~SpmvPerformanceTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected