Apply CUDA_KERNEL_LOOP, not tested