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

Function assignKargs

src/library/blas/gens/dot.cpp:264–284  ·  view source on GitHub ↗

__kernel void %PREFIXdot_kernel( __global %TYPE *_X, __global %TYPE *_Y, __global %TYPE *scratchBuff, uint N, uint offx, int incx, uint offy, int incy, int doConj ) */

Source from the content-addressed store, hash-verified

262 uint N, uint offx, int incx, uint offy, int incy, int doConj )
263*/
264static void
265assignKargs(KernelArg *args, const void *params, const void* )
266{
267 CLBlasKargs *blasArgs = (CLBlasKargs*)params;
268 cl_int incx, incy, doConj;
269
270 INIT_KARG(&args[0], blasArgs->B);
271 INIT_KARG(&args[1], blasArgs->C);
272 INIT_KARG(&args[2], blasArgs->D);
273 initSizeKarg(&args[3], blasArgs->N);
274 initSizeKarg(&args[4], blasArgs->offBX);
275 incx = blasArgs->ldb.Vector;
276 INIT_KARG(&args[5], incx);
277 initSizeKarg(&args[6], blasArgs->offCY);
278 incy = blasArgs->ldc.Vector;
279 INIT_KARG(&args[7], incy);
280 doConj = blasArgs->K;
281 INIT_KARG(&args[8], doConj);
282
283 return;
284}
285
286/** The purpose of this function is to add an work-group size indicator in
287 kernelKey, so that a different kernel is generated when work-group size is changed.

Callers

nothing calls this directly

Calls 1

initSizeKargFunction · 0.85

Tested by

no test coverage detected