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

Method SetUp

src/tests/include/gemm.h:71–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70protected:
71 virtual void SetUp()
72 {
73 ExtraTestSizes extra;
74
75 order = ::std::tr1::get<0>(GetParam());
76 transA = ::std::tr1::get<1>(GetParam());
77 transB = ::std::tr1::get<2>(GetParam());
78 M = ::std::tr1::get<3>(GetParam());
79 N = ::std::tr1::get<4>(GetParam());
80 K = ::std::tr1::get<5>(GetParam());
81 extra = ::std::tr1::get<6>(GetParam());
82 offA = extra.offA;
83 offB = extra.offBX;
84 offC = extra.offCY;
85 lda = extra.strideA.ld;
86 ldb = extra.strideBX.ld;
87 ldc = extra.strideCY.ld;
88 numCommandQueues = ::std::tr1::get<7>(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->useK()) {
113 K = base->K();
114 }
115
116 if (transA == clblasNoTrans) {
117 rowsA = M;
118 columnsA = K;
119 }
120 else {
121 rowsA = K;
122 columnsA = M;
123 }
124 if (transB == clblasNoTrans) {
125 rowsB = K;
126 columnsB = N;
127 }
128 else {

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
useMMethod · 0.80
MMethod · 0.80
useNMethod · 0.80
NMethod · 0.80
useKMethod · 0.80

Tested by

no test coverage detected