CUDA HORZ_IDX macro (the same as the opencl one)