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

Method SetUp

src/tests/include/gerc.h:59–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58protected:
59 virtual void SetUp()
60 {
61 order = ::std::tr1::get<0>(GetParam());
62 M = ::std::tr1::get<1>(GetParam());
63 N = ::std::tr1::get<2>(GetParam());
64 lda = ::std::tr1::get<3>(GetParam());
65 incx = ::std::tr1::get<4>(GetParam());
66 incy = ::std::tr1::get<5>(GetParam());
67 offa = ::std::tr1::get<6>(GetParam());
68 offx = ::std::tr1::get<7>(GetParam());
69 offy = ::std::tr1::get<8>(GetParam());
70 numCommandQueues = ::std::tr1::get<9>(GetParam());
71
72 base = ::clMath::BlasBase::getInstance();
73 seed = base->seed();
74 ComplexLong fAlpha;
75 fAlpha.re = 3, fAlpha.imag = 4;
76 base->setAlpha(fAlpha);
77
78 useNumCommandQueues = base->useNumCommandQueues();
79 if (useNumCommandQueues) {
80 numCommandQueues = base->numCommandQueues();
81 }
82
83 useAlpha = base->useAlpha();
84 if (useAlpha != 0) {
85 paramAlpha = base->alpha();
86 }
87 if (base->useM()) {
88 M = base->M();
89 }
90 if (base->useN()) {
91 N = base->N();
92 }
93
94 rowsA = M;
95 columnsA = N;
96
97
98 if( lda == 0 )
99 lda = ::std::max(M, N);
100
101 }
102
103 clblasOrder order;
104 size_t M, N;

Callers

nothing calls this directly

Calls 10

seedMethod · 0.80
useNumCommandQueuesMethod · 0.80
numCommandQueuesMethod · 0.80
useAlphaMethod · 0.80
alphaMethod · 0.80
useMMethod · 0.80
MMethod · 0.80
useNMethod · 0.80
NMethod · 0.80
setAlphaMethod · 0.45

Tested by

no test coverage detected