| 115 | |
| 116 | template <typename ElemType> |
| 117 | ScalPerformanceTest<ElemType>::ScalPerformanceTest( |
| 118 | BlasFunction fn, |
| 119 | TestParams *params) : PerformanceTest(fn,(problem_size_t) ( (2 * params->N) * sizeof(ElemType) ) ), params_(*params), mobjX_(NULL) |
| 120 | { |
| 121 | |
| 122 | X_ = backX_ = NULL; |
| 123 | mobjX_= NULL; |
| 124 | lengthX = 1 + (params->N - 1) * abs(params_.incx); |
| 125 | try { |
| 126 | X_ = new ElemType[lengthX + params_.offBX]; |
| 127 | backX_ = new ElemType[lengthX + params_.offBX]; |
| 128 | } |
| 129 | catch(bad_alloc& ba) { |
| 130 | X_ = backX_ = NULL; // areResourcesSufficient() will handle the rest and return |
| 131 | mobjX_= NULL; |
| 132 | ba = ba; |
| 133 | } |
| 134 | |
| 135 | base_ = ::clMath::BlasBase::getInstance(); |
| 136 | } |
| 137 | |
| 138 | template <typename ElemType> |
| 139 | ScalPerformanceTest<ElemType>::~ScalPerformanceTest() |
nothing calls this directly
no outgoing calls
no test coverage detected