| 119 | |
| 120 | template <typename ElemType> |
| 121 | GerPerformanceTest<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 | |
| 139 | template <typename ElemType> |
| 140 | GerPerformanceTest<ElemType>::~GerPerformanceTest() |
nothing calls this directly
no outgoing calls
no test coverage detected