Fix GPU kernels
Description
The kernel was wrong in case of a global index larger than 32.
News snippet
Fix a GPU kernel.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.