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

Method SetUp

src/tests/include/hemm.h:65–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64protected:
65 virtual void SetUp()
66 {
67 ExtraTestSizes extra;
68 order = ::std::tr1::get<0>(GetParam());
69 side = ::std::tr1::get<1>(GetParam());
70 uplo = ::std::tr1::get<2>(GetParam());
71 M = ::std::tr1::get<3>(GetParam());
72 N = ::std::tr1::get<4>(GetParam());
73 alpha = ::std::tr1::get<5>(GetParam());
74 beta = ::std::tr1::get<6>(GetParam());
75 extra = ::std::tr1::get<7>(GetParam());
76
77 offA = extra.offA;
78 offb = extra.offBX;
79 offc = extra.offCY;
80 lda = extra.strideA.ld;
81 ldb = extra.strideBX.ld;
82 ldc = extra.strideCY.ld;
83
84 numCommandQueues = ::std::tr1::get<8>(GetParam());
85
86 base = ::clMath::BlasBase::getInstance();
87 seed = base->seed();
88
89 useNumCommandQueues = base->useNumCommandQueues();
90 if (useNumCommandQueues) {
91 numCommandQueues = base->numCommandQueues();
92 }
93
94 if (base->useM()) {
95 M = base->M();
96 }
97 if (base->useN()) {
98 N = base->N();
99 }
100
101 if( side == clblasLeft )
102 {
103 lda = ::std::max(lda, M);
104 }
105 else
106 {
107 lda = ::std::max(lda, N);
108 }
109
110
111 switch (order) {
112 case clblasRowMajor:
113 ldb = ::std::max(ldb, N);
114 ldc = ::std::max(ldc, N);
115 break;
116 case clblasColumnMajor:
117 ldb = ::std::max(ldb, M);
118 ldc = ::std::max(ldc, M);
119 break;
120 }
121 }
122

Callers

nothing calls this directly

Calls 7

seedMethod · 0.80
useNumCommandQueuesMethod · 0.80
numCommandQueuesMethod · 0.80
useMMethod · 0.80
MMethod · 0.80
useNMethod · 0.80
NMethod · 0.80

Tested by

no test coverage detected