making l2e coupler CUDA-compatible