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

Method TrmvPerformanceTest

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

Source from the content-addressed store, hash-verified

125
126template <typename ElemType>
127TrmvPerformanceTest<ElemType>::TrmvPerformanceTest(
128 BlasFunction fn,
129 TestParams *params) : PerformanceTest( fn, (problem_size_t)( ( params->N * (params->N+1) * sizeof(ElemType) ) ) ), //**************Gbps formula here***********
130 params_(*params), mobjA_(NULL), mobjX_(NULL)
131{
132
133 A_ = new ElemType[params_.N * params_.lda + params_.offa];
134 X_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incx) + params_.offBX];
135 backX_ = new ElemType[ 1 + (params_.N-1) * abs(params_.incx) + params_.offBX];
136
137 base_ = ::clMath::BlasBase::getInstance();
138 mobjA_ = NULL;
139 mobjX_ = NULL;
140 scratchBuff = NULL;
141}
142
143template <typename ElemType>
144TrmvPerformanceTest<ElemType>::~TrmvPerformanceTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected