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

Method SetUp

src/tests/include/symm.h:67–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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