| 67 | |
| 68 | protected: |
| 69 | virtual void SetUp() |
| 70 | { |
| 71 | ExtraTestSizes extra; |
| 72 | |
| 73 | order = ::std::tr1::get<0>(GetParam()); |
| 74 | uplo = ::std::tr1::get<1>(GetParam()); |
| 75 | N = ::std::tr1::get<2>(GetParam()); |
| 76 | extra = ::std::tr1::get<3>(GetParam()); |
| 77 | offsetA = extra.offA; |
| 78 | lda = extra.strideA.ld; |
| 79 | incx = extra.strideBX.inc; |
| 80 | incy = extra.strideCY.inc; |
| 81 | numCommandQueues = ::std::tr1::get<4>(GetParam()); |
| 82 | |
| 83 | base = ::clMath::BlasBase::getInstance(); |
| 84 | seed = base->seed(); |
| 85 | |
| 86 | useNumCommandQueues = base->useNumCommandQueues(); |
| 87 | if (useNumCommandQueues) { |
| 88 | numCommandQueues = base->numCommandQueues(); |
| 89 | } |
| 90 | |
| 91 | useAlpha = base->useAlpha(); |
| 92 | if (useAlpha != 0) { |
| 93 | paramAlpha = base->alpha(); |
| 94 | } |
| 95 | useBeta = base->useBeta(); |
| 96 | if (useBeta != 0) { |
| 97 | paramBeta = base->beta(); |
| 98 | } |
| 99 | if (base->useN()) { |
| 100 | N = base->N(); |
| 101 | } |
| 102 | if (base->useIncX()) { |
| 103 | incx = base->incX(); |
| 104 | } |
| 105 | if (base->useIncY()) { |
| 106 | incy = base->incY(); |
| 107 | } |
| 108 | |
| 109 | lda = ::std::max(lda, N); |
| 110 | |
| 111 | if (incx == 1 || incx == -1) { |
| 112 | /* X is row vector for row major matrix B |
| 113 | * or column vector for column major matrix B */ |
| 114 | ldb = lda; |
| 115 | offsetx = (N / 2) * ldb; |
| 116 | } |
| 117 | else { |
| 118 | /* X is column vector for row major matrix B |
| 119 | * or row vector for column major matrix B */ |
| 120 | ldb = ::std::max(N, (size_t)module(incx)); |
| 121 | offsetx = N / 2; |
| 122 | incx = incx > 0 ? (int)ldb : (int)(0-ldb); |
| 123 | } |
| 124 | |
| 125 | if (incy == 1 || incy == -1) { |
| 126 | /* Y is row vector in row major matrix C |
nothing calls this directly
no test coverage detected