more redundancy in setup_cuda