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

Method SetUp

src/tests/include/gemm-2.h:69–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68protected:
69 virtual void SetUp()
70 {
71 ExtraTestSizes extra;
72
73 order = ::std::tr1::get<0>(GetParam());
74 transA = ::std::tr1::get<1>(GetParam());
75 transB = ::std::tr1::get<2>(GetParam());
76 M = ::std::tr1::get<3>(GetParam());
77 N = ::std::tr1::get<4>(GetParam());
78 K = ::std::tr1::get<5>(GetParam());
79 extra = ::std::tr1::get<6>(GetParam());
80 offA = extra.offA;
81 offB = extra.offBX;
82 offC = extra.offCY;
83 lda = extra.strideA.ld;
84 ldb = extra.strideBX.ld;
85 ldc = extra.strideCY.ld;
86 numCommandQueues = ::std::tr1::get<7>(GetParam());
87
88 base = ::clMath::BlasBase::getInstance();
89 seed = base->seed();
90
91 useNumCommandQueues = base->useNumCommandQueues();
92 if (useNumCommandQueues) {
93 numCommandQueues = base->numCommandQueues();
94 }
95
96 useAlpha = base->useAlpha();
97 if (useAlpha != 0) {
98 paramAlpha = base->alpha();
99 }
100 useBeta = base->useBeta();
101 if (useBeta != 0) {
102 paramBeta = base->beta();
103 }
104 if (base->useM()) {
105 M = base->M();
106 }
107 if (base->useN()) {
108 N = base->N();
109 }
110 if (base->useK()) {
111 K = base->K();
112 }
113
114 if (transA == clblasNoTrans) {
115 rowsA = M;
116 columnsA = K;
117 }
118 else {
119 rowsA = K;
120 columnsA = M;
121 }
122 if (transB == clblasNoTrans) {
123 rowsB = K;
124 columnsB = N;
125 }
126 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