| 104 | |
| 105 | template <typename ElemType> |
| 106 | Nrm2PerformanceTest<ElemType>::Nrm2PerformanceTest( |
| 107 | BlasFunction fn, |
| 108 | TestParams *params) : PerformanceTest(fn,(problem_size_t) ( (params->N) * sizeof(ElemType) ) ), params_(*params), |
| 109 | mobjX_(NULL),mobjNRM2_(NULL) |
| 110 | { |
| 111 | |
| 112 | blasX_ = NULL; |
| 113 | mobjX_= mobjNRM2_= scratchBuff = NULL; |
| 114 | lengthX = 1 + (params->N - 1) * abs(params_.incx); |
| 115 | |
| 116 | try |
| 117 | { |
| 118 | blasX_ = new ElemType[lengthX + params_.offBX]; |
| 119 | } |
| 120 | catch(bad_alloc& ba) { |
| 121 | blasX_ = NULL; // areResourcesSufficient() will handle the rest and return |
| 122 | mobjX_= mobjNRM2_= scratchBuff = NULL; |
| 123 | ba = ba; |
| 124 | } |
| 125 | |
| 126 | base_ = ::clMath::BlasBase::getInstance(); |
| 127 | } |
| 128 | |
| 129 | template <typename ElemType> |
| 130 | Nrm2PerformanceTest<ElemType>::~Nrm2PerformanceTest() |
nothing calls this directly
no outgoing calls
no test coverage detected