Disabled the cuda variant when CUDA is not available.