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
| 292 | Note -- SubproblemDim is a member of kernelKey |
| 293 | **/ |
| 294 | static void |
| 295 | fixupArgs(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 |
nothing calls this directly
no outgoing calls
no test coverage detected