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

Function assignKargs

src/library/blas/gens/reduction.cpp:279–293  ·  view source on GitHub ↗

__kernel void %PREFIXred_sum_kernel( __global %TYPE *_X, __global %TYPE *_res, uint N, uint offx, uint offRes ) */

Source from the content-addressed store, hash-verified

277 uint N, uint offx, uint offRes )
278*/
279static void
280assignKargs(KernelArg *args, const void *params, const void* _extra)
281{
282 DUMMY_ARG_USAGE(_extra);
283 CLBlasKargs *blasArgs = (CLBlasKargs*)params;
284
285 INIT_KARG(&args[0], blasArgs->D);
286 INIT_KARG(&args[1], blasArgs->A);
287 initSizeKarg(&args[2], blasArgs->N);
288 size_t offScratch = 0;
289 initSizeKarg(&args[3], offScratch);
290 initSizeKarg(&args[4], blasArgs->offA);
291
292 return;
293}
294
295/** The purpose of this function is to add an work-group size indicator in
296 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