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

Method SetUp

src/tests/include/spmv.h:63–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62protected:
63 virtual void SetUp()
64 {
65 ExtraTestSizes extra;
66
67 order = ::std::tr1::get<0>(GetParam());
68 uplo = ::std::tr1::get<1>(GetParam());
69 N = ::std::tr1::get<2>(GetParam());
70 paramAlpha = ::std::tr1::get<3>(GetParam());
71 paramBeta = ::std::tr1::get<4>(GetParam());
72 offA = ::std::tr1::get<5>(GetParam());
73 offx = ::std::tr1::get<6>(GetParam());
74 offy = ::std::tr1::get<7>(GetParam());
75 extra = ::std::tr1::get<8>(GetParam());
76 lda = 0;
77 incx = extra.strideBX.inc;
78 incy = extra.strideCY.inc;
79
80 numCommandQueues = ::std::tr1::get<9>(GetParam());
81
82 base = ::clMath::BlasBase::getInstance();
83 seed = base->seed();
84
85 useNumCommandQueues = base->useNumCommandQueues();
86 if (useNumCommandQueues) {
87 numCommandQueues = base->numCommandQueues();
88 }
89
90 useAlpha = base->useAlpha();
91 if (useAlpha != 0) {
92 paramAlpha = base->alpha();
93 }
94 useBeta = base->useBeta();
95 if (useBeta != 0) {
96 paramBeta = base->beta();
97 }
98 if (base->useN()) {
99 N = base->N();
100 }
101 if (base->useIncX()) {
102 incx = base->incX();
103 }
104 if (base->useIncY()) {
105 incy = base->incY();
106 }
107 }
108
109 clblasOrder order;
110 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