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

Method RotPerformanceTest

src/tests/performance/perf-rot.cpp:118–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117template <typename ElemType>
118RotPerformanceTest<ElemType>::RotPerformanceTest(
119 BlasFunction fn,
120 TestParams *params) : PerformanceTest(fn,(problem_size_t) ((4 * params->N ) * sizeof(ElemType))), params_(*params)
121{
122
123 X_ = Y_ = NULL;
124 back_X_ = back_Y_ = NULL;
125 mobjX_= mobjY_ = NULL;
126
127 lengthx = 1 + (params_.N - 1) * abs(params_.incx);
128 lengthy = 1 + (params_.N - 1) * abs(params_.incy);
129
130 try
131 {
132 X_ = new ElemType[lengthx + params_.offa];
133 back_X_ = new ElemType[lengthx + params_.offa];
134 Y_ = new ElemType[lengthy + params_.offb];
135 back_Y_ = new ElemType[lengthy + params_.offb];
136 }
137 catch(bad_alloc& ba)
138 {
139 X_ = back_X_ = Y_ = back_Y_ = NULL; // areResourcesSufficient() will handle the rest and return
140 ba = ba;
141 }
142
143 base_ = ::clMath::BlasBase::getInstance();
144}
145
146template <typename ElemType>
147RotPerformanceTest<ElemType>::~RotPerformanceTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected