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

Function assignKargs

src/library/blas/gens/asum.cpp:268–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266*/
267
268static void
269assignKargs(KernelArg *args, const void *params, const void* )
270{
271 CLBlasKargs *blasArgs = (CLBlasKargs*)params;
272 cl_int incx;
273
274 INIT_KARG(&args[0], blasArgs->B);
275 INIT_KARG(&args[1], blasArgs->D);
276 initSizeKarg(&args[2], blasArgs->N);
277 initSizeKarg(&args[3], blasArgs->offBX);
278 incx = blasArgs->ldb.Vector;
279 INIT_KARG(&args[4], incx);
280 return;
281}
282
283/** The purpose of this function is to add an work-group size indicator in
284 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