| 71 | |
| 72 | protected: |
| 73 | virtual void SetUp() |
| 74 | { |
| 75 | ExtraTestSizes extra; |
| 76 | size_t lenX, lenY; |
| 77 | bool seqX, seqY; |
| 78 | |
| 79 | order = ::std::tr1::get<0>(GetParam()); |
| 80 | transA = ::std::tr1::get<1>(GetParam()); |
| 81 | M = ::std::tr1::get<2>(GetParam()); |
| 82 | N = ::std::tr1::get<3>(GetParam()); |
| 83 | extra = ::std::tr1::get<4>(GetParam()); |
| 84 | offA = extra.offA; |
| 85 | lda = extra.strideA.ld; |
| 86 | incx = extra.strideBX.inc; |
| 87 | incy = extra.strideCY.inc; |
| 88 | numCommandQueues = ::std::tr1::get<5>(GetParam()); |
| 89 | |
| 90 | base = ::clMath::BlasBase::getInstance(); |
| 91 | seed = base->seed(); |
| 92 | |
| 93 | useNumCommandQueues = base->useNumCommandQueues(); |
| 94 | if (useNumCommandQueues) { |
| 95 | numCommandQueues = base->numCommandQueues(); |
| 96 | } |
| 97 | |
| 98 | useAlpha = base->useAlpha(); |
| 99 | if (useAlpha != 0) { |
| 100 | paramAlpha = base->alpha(); |
| 101 | } |
| 102 | useBeta = base->useBeta(); |
| 103 | if (useBeta != 0) { |
| 104 | paramBeta = base->beta(); |
| 105 | } |
| 106 | if (base->useM()) { |
| 107 | M = base->M(); |
| 108 | } |
| 109 | if (base->useN()) { |
| 110 | N = base->N(); |
| 111 | } |
| 112 | if (base->useIncX()) { |
| 113 | incx = base->incX(); |
| 114 | } |
| 115 | if (base->useIncY()) { |
| 116 | incy = base->incY(); |
| 117 | } |
| 118 | |
| 119 | ldb = ldc = 0; |
| 120 | offx = offy = 0; |
| 121 | |
| 122 | L = (M + N) / 2; //It doesn't matter, can be any value |
| 123 | |
| 124 | seqX = module(incx) == 1; |
| 125 | seqY = module(incy) == 1; |
| 126 | |
| 127 | if (transA == clblasNoTrans) { |
| 128 | lenX = N; |
| 129 | lenY = M; |
| 130 | } |
nothing calls this directly
no test coverage detected