Julia has two different functions, rem and mod, which differ in how they handle negative numbers in the first argument. CUDA also has these two functions, but both of them handle negative numbers like ...