Replaces the getValidWorkDiv function with getValidWorkDivForKernel which take into account the kernel in calculating workdiv.
[x] This PR will be merged after #2251. Includes the changes of #2251.
This PR should be merged together with a Next PR: Change exec and task creation function. They will use KernelBundle as a single argument not KernelObject + Args... Otherwise kernel arguments would be used in kernel bundle and exec 2 times...
Replaces the
getValidWorkDiv
function withgetValidWorkDivForKernel
which take into account the kernel in calculating workdiv.This PR should be merged together with a Next PR: Change exec and task creation function. They will use KernelBundle as a single argument not KernelObject + Args... Otherwise kernel arguments would be used in kernel bundle and exec 2 times...