Name AXPY creates problem in gTest
| 27 | |
| 28 | // Name AXPY creates problem in gTest |
| 29 | class AXPY : public TestWithParam< |
| 30 | |
| 31 | ::std::tr1::tuple< |
| 32 | int, // N |
| 33 | ComplexLong, // alpha |
| 34 | int, // offBX |
| 35 | int, // incx, should not be 0 |
| 36 | int, //offCY |
| 37 | int, //incy, should not be 0 |
| 38 | int // numCommandQueues |
| 39 | > > { |
| 40 | public: |
| 41 | void getParams(TestParams *params) |
| 42 | { |
| 43 | params->N = N; |
| 44 | params->alpha = paramAlpha; |
| 45 | params->offBX = offBX; |
| 46 | params->incx = incx; |
| 47 | params->offCY = offCY; |
| 48 | params->incy = incy; |
| 49 | params->numCommandQueues = numCommandQueues; |
| 50 | } |
| 51 | |
| 52 | protected: |
| 53 | virtual void SetUp() |
| 54 | { |
| 55 | N = ::std::tr1::get<0>(GetParam()); |
| 56 | paramAlpha = ::std::tr1::get<1>(GetParam()); |
| 57 | offBX = ::std::tr1::get<2>(GetParam()); |
| 58 | incx = ::std::tr1::get<3>(GetParam()); |
| 59 | offCY = ::std::tr1::get<4>(GetParam()); |
| 60 | incy = ::std::tr1::get<5>(GetParam()); |
| 61 | numCommandQueues = ::std::tr1::get<6>(GetParam()); |
| 62 | |
| 63 | base = ::clMath::BlasBase::getInstance(); |
| 64 | seed = base->seed(); |
| 65 | |
| 66 | useNumCommandQueues = base->useNumCommandQueues(); |
| 67 | if (useNumCommandQueues) { |
| 68 | numCommandQueues = base->numCommandQueues(); |
| 69 | } |
| 70 | |
| 71 | if (base->useN()) { |
| 72 | N = base->N(); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | size_t N; |
| 77 | bool useAlpha; |
| 78 | ComplexLong paramAlpha; |
| 79 | size_t offBX; |
| 80 | int incx; |
| 81 | size_t offCY; |
| 82 | int incy; |
| 83 | unsigned int seed; |
| 84 | |
| 85 | ::clMath::BlasBase *base; |
| 86 |
nothing calls this directly
no outgoing calls
no test coverage detected