Found the bug of the CUDA code, I am stupid ... division by 2 is apparently too complicated for me, omg!