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

Method SetUp

src/tests/include/hemv.h:74–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73protected:
74 virtual void SetUp()
75 {
76 ExtraTestSizes extra;
77
78 order = ::std::tr1::get<0>(GetParam());
79 uplo = ::std::tr1::get<1>(GetParam());
80 N = ::std::tr1::get<2>(GetParam());
81 paramAlpha = ::std::tr1::get<3>(GetParam());
82 paramBeta = ::std::tr1::get<4>(GetParam());
83 offA = ::std::tr1::get<5>(GetParam());
84 offx = ::std::tr1::get<6>(GetParam());
85 offy = ::std::tr1::get<7>(GetParam());
86 extra = ::std::tr1::get<8>(GetParam());
87 lda = extra.strideA.ld;
88 incx = extra.strideBX.inc;
89 incy = extra.strideCY.inc;
90
91 numCommandQueues = ::std::tr1::get<9>(GetParam());
92
93 base = ::clMath::BlasBase::getInstance();
94 seed = base->seed();
95
96 #ifndef HEMV_PACKED
97 lda = ::std::max( lda, N );
98 #else
99 lda =0;
100 #endif
101
102 useNumCommandQueues = base->useNumCommandQueues();
103 if (useNumCommandQueues) {
104 numCommandQueues = base->numCommandQueues();
105 }
106
107 useAlpha = base->useAlpha();
108 if (useAlpha != 0) {
109 paramAlpha = base->alpha();
110 }
111 useBeta = base->useBeta();
112 if (useBeta != 0) {
113 paramBeta = base->beta();
114 }
115 if (base->useN()) {
116 N = base->N();
117 }
118 if (base->useIncX()) {
119 incx = base->incX();
120 }
121 if (base->useIncY()) {
122 incy = base->incY();
123 }
124 }
125
126 clblasOrder order;
127 clblasUplo uplo;

Callers

nothing calls this directly

Calls 13

seedMethod · 0.80
useNumCommandQueuesMethod · 0.80
numCommandQueuesMethod · 0.80
useAlphaMethod · 0.80
alphaMethod · 0.80
useBetaMethod · 0.80
betaMethod · 0.80
useNMethod · 0.80
NMethod · 0.80
useIncXMethod · 0.80
incXMethod · 0.80
useIncYMethod · 0.80

Tested by

no test coverage detected