The method getValidWorkDiv() does not take the amount of dynamic shared memory into account.
If the dynamic shared size depends on the starting parameters, it can exceed the maximum amount of shared memory for the device.
The maximum shared memory for the device is available from the device properties.
Even if the device's maximum shared memory is taken into account the amount of static shared memory must be removed because static shared bytes + dynamic shared bytes should not exceed the device shared memory per thread block.
All alpaka versions are affected by this bug.
The method
getValidWorkDiv()does not take the amount of dynamic shared memory into account.If the dynamic shared size depends on the starting parameters, it can exceed the maximum amount of shared memory for the device.
The maximum shared memory for the device is available from the device properties.
Even if the device's maximum shared memory is taken into account the amount of static shared memory must be removed because
static shared bytes+dynamic shared bytesshould not exceed the device shared memory per thread block.All alpaka versions are affected by this bug.