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

Method RotgPerformanceTest

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

Source from the content-addressed store, hash-verified

116
117template <typename ElemType1, typename ElemType2>
118RotgPerformanceTest<ElemType1, ElemType2>::RotgPerformanceTest(
119 BlasFunction fn,
120 TestParams *params) : PerformanceTest(fn,(problem_size_t) (5 * sizeof(ElemType1) + sizeof(ElemType2))), params_(*params)
121{
122
123 SA_ = SB_ = S_ = NULL;
124 back_SA_ = back_SB_ = back_S_ = NULL;
125 C_ = back_C_ = NULL;
126 mobjSA_= mobjSB_ = mobjC_ = mobjS_ = NULL;
127
128 try
129 {
130 SA_ = new ElemType1[1 + params_.offBX];
131 back_SA_ = new ElemType1[1 + params_.offBX];
132 SB_ = new ElemType1[1 + params_.offCY];
133 back_SB_ = new ElemType1[1 + params_.offCY];
134 C_ = new ElemType2[1 + params_.offa];
135 back_C_ = new ElemType2[1 + params_.offa];
136 S_ = new ElemType1[1 + params_.offb];
137 back_S_ = new ElemType1[1 + params_.offb];
138 }
139 catch(bad_alloc& ba)
140 {
141 SA_ = back_SA_ = SB_ = back_SB_ = NULL; // areResourcesSufficient() will handle the rest and return
142 S_ = back_S_ = NULL;
143 C_ = back_C_ = NULL;
144 ba = ba;
145 }
146
147 base_ = ::clMath::BlasBase::getInstance();
148}
149
150template <typename ElemType1, typename ElemType2>
151RotgPerformanceTest<ElemType1, ElemType2>::~RotgPerformanceTest()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected