change CUDA_KERNEL_GUARD to CUDA_KERNEL_LOOP