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

Method GerPerformanceTest

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

Source from the content-addressed store, hash-verified

119
120template <typename ElemType>
121GerPerformanceTest<ElemType>::GerPerformanceTest(
122 BlasFunction fn,
123 TestParams *params) : PerformanceTest(fn,(problem_size_t) ( ( (3 * params->M * params->N) + params->M ) * sizeof(ElemType) ) ), params_(*params), mobjA_(NULL), mobjx_(NULL), mobjy_(NULL)
124{
125
126 if( params_.order == clblasColumnMajor )
127 lengthA = params_.N * params_.lda;
128 else
129 lengthA = params_.M * params_.lda;
130
131 A_ = new ElemType[lengthA + params_.offa];
132 backA_ = new ElemType[lengthA + params_.offa];
133 x_ = new ElemType[(1 + (params->M - 1) * abs(params_.incx))+ params_.offBX];
134 y_ = new ElemType[(1 + (params->N - 1) * abs(params_.incy)) + params_.offCY] ;
135
136 base_ = ::clMath::BlasBase::getInstance();
137}
138
139template <typename ElemType>
140GerPerformanceTest<ElemType>::~GerPerformanceTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected