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

Function fixupArgs

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

The purpose of this function is to add an work-group size indicator in kernelKey, so that a different kernel is generated when work-group size is changed. Reduction loop is unrolled in kprintf based on work-group size. Member of SubproblemDim- bwidth, will be used to store work-group size of the current kernel this will become a kernelKey, and kernel cache will be accordingly mana

Source from the content-addressed store, hash-verified

292 Note -- SubproblemDim is a member of kernelKey
293**/
294static void
295fixupArgs(void *args, SubproblemDim *subdims, void *extra)
296{
297 DUMMY_ARG_USAGE(extra);
298 CLBlasKargs *kargs = (CLBlasKargs*)args;
299 SolutionStep *step = container_of(kargs, args, SolutionStep);
300
301 subdims->bwidth = (step->pgran.wgSize[0]) * (step->pgran.wgSize[1]);
302}
303

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected