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

Method TpmvPerformanceTest

src/tests/performance/perf-tpmv.cpp:123–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122template <typename ElemType>
123TpmvPerformanceTest<ElemType>::TpmvPerformanceTest(
124 BlasFunction fn,
125 TestParams *params) : PerformanceTest( fn, (problem_size_t)( ( params->N * (params->N+1) * sizeof(ElemType) ) ) ),
126 params_(*params), mobjAP_(NULL), mobjX_(NULL)
127{
128
129 AP_ = new ElemType[( ( params_.N *( params_.N + 1 ) )/2 ) + params_.offa];
130 X_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incx) + params_.offBX];
131 backX_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incx) + params_.offBX];
132
133 base_ = ::clMath::BlasBase::getInstance();
134 mobjAP_ = NULL;
135 mobjX_ = NULL;
136 scratchBuff = NULL;
137}
138
139template <typename ElemType>
140TpmvPerformanceTest<ElemType>::~TpmvPerformanceTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected