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

Method initDefault

src/tests/functional/func.h:248–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248template <typename T> void
249baseMetod<T>::initDefault(size_t s, unsigned int q, USE_BUFFER ub)
250{
251 size = s;
252
253 order = clblasColumnMajor;
254
255 seed = 12345;
256 base = clMath::BlasBase::getInstance();
257
258 if (q > 0) {
259 base->setNumCommandQueues(q);
260 }
261
262 queues = base->commandQueues();
263 qnum = base->numCommandQueues();
264
265 context = base->context();
266 alpha = convertMultiplier<TYPE>(base->alpha());
267 beta = convertMultiplier<TYPE>(base->beta());
268
269 outEvent= NULL;
270 inEvent = NULL;
271
272 inEventCount = 0;
273
274 switch (ub) {
275 case USE_ABC:
276 A = new TYPE[size * size];
277 B = new TYPE[size * size];
278 C = new TYPE[size * size];
279 AP = NULL;
280 X = NULL;
281 Y = NULL;
282 break;
283
284 case USE_AB:
285 A = new TYPE[size * size];
286 B = new TYPE[size * size];
287 AP = NULL;
288 C = NULL;
289 X = NULL;
290 Y = NULL;
291 break;
292
293 case USE_AC:
294 A = new TYPE[size * size];
295 C = new TYPE[size * size];
296 AP = NULL;
297 B = NULL;
298 X = NULL;
299 Y = NULL;
300 break;
301
302
303 case USE_AX:
304
305 A = new TYPE[size * size];

Callers 6

errorMethod · 0.80
imagesMethod · 0.80
initMethod · 0.80
runOutMethod · 0.80
runInMethod · 0.80
initMethod · 0.80

Calls 6

setNumCommandQueuesMethod · 0.80
commandQueuesMethod · 0.80
numCommandQueuesMethod · 0.80
contextMethod · 0.80
alphaMethod · 0.80
betaMethod · 0.80

Tested by

no test coverage detected