| 23 | using ::testing::TestWithParam; |
| 24 | |
| 25 | class DOTC : public TestWithParam< |
| 26 | ::std::tr1::tuple< |
| 27 | int, // N |
| 28 | int, // incx, should be greater than 0 |
| 29 | int, //incy |
| 30 | int, //offx |
| 31 | int, //offy |
| 32 | int, //offa -- for offDP |
| 33 | int // numCommandQueues |
| 34 | > > { |
| 35 | public: |
| 36 | void getParams(TestParams *params) |
| 37 | { |
| 38 | params->N = N; |
| 39 | params->incx = incx; |
| 40 | params->incy = incy; |
| 41 | params->offBX = offx; |
| 42 | params->offCY = offy; |
| 43 | params->offa = offDP; |
| 44 | params->numCommandQueues = numCommandQueues; |
| 45 | } |
| 46 | |
| 47 | protected: |
| 48 | virtual void SetUp() |
| 49 | { |
| 50 | //size_t lenX; |
| 51 | |
| 52 | N = ::std::tr1::get<0>(GetParam()); |
| 53 | incx = ::std::tr1::get<1>(GetParam()); |
| 54 | incy = ::std::tr1::get<2>(GetParam()); |
| 55 | offx = ::std::tr1::get<3>(GetParam()); |
| 56 | offy = ::std::tr1::get<4>(GetParam()); |
| 57 | offDP = ::std::tr1::get<5>(GetParam()); |
| 58 | numCommandQueues = ::std::tr1::get<6>(GetParam()); |
| 59 | |
| 60 | base = ::clMath::BlasBase::getInstance(); |
| 61 | |
| 62 | useNumCommandQueues = base->useNumCommandQueues(); |
| 63 | if (useNumCommandQueues) { |
| 64 | numCommandQueues = base->numCommandQueues(); |
| 65 | } |
| 66 | |
| 67 | if (base->useN()) { |
| 68 | N = base->N(); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | size_t N; |
| 73 | int incx; |
| 74 | int incy; |
| 75 | size_t offx, offy, offDP; |
| 76 | |
| 77 | ::clMath::BlasBase *base; |
| 78 | cl_ulong imageA, imageX; |
| 79 | |
| 80 | bool useNumCommandQueues; |
| 81 | cl_uint numCommandQueues; |
| 82 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected