[Error] [carb.gym.plugin] Sim CUDA device 3 can't be set, the total number of available devices is 1

Hi!
I can run my code with device ‘cuda:0’, but when I run with “sim_device=‘cuda:3’”, I got:

[Error] [carb.gym.plugin] Sim CUDA device 3 can’t be set, the total number of available devices is 1

I got 4 graphic cards, ubuntu 18.04, Driver Version: 470.86 and CUDA Version: 11.4

What should I do to run my code with device ‘cuda:3’ ?

Besides, when I run torch.cuda.device_count(), I got “4”, so there should be no problem with driver

Make sure that you don’t have CUDA_VISIBLE_DEVICES environment variable set either in your environment or in your python scripts somewhere.

Make sure that if you are using a container, you have specified --gpus=all and that you don’t have NV_VISIBLE_DEVICES set.