Fix red-black in the CUDA translation
Refactoring