InterFuser icon indicating copy to clipboard operation
InterFuser copied to clipboard

Questions about running Carla on GPU servers

Open YilinGao-SHU opened this issue 2 years ago • 4 comments

Thanks so much for your work! But I got some puzzle problems when I try to run Carla on a GPU Server with 8 GPUs, when I use the following commands to start a Carla server, all the process run on gpu 0 like this. CUDA_VISIBLE_DEVICES=0 ./CarlaUE4.sh --world-port=20000 -carla-server & CUDA_VISIBLE_DEVICES=1 ./CarlaUE4.sh --world-port=20002 -carla-server & Have u ever met this mistake? image

YilinGao-SHU avatar Jan 04 '24 07:01 YilinGao-SHU

Hi! Could you show the output of nvidia-smi? I can not understand the screenshot :)

deepcs233 avatar Jan 04 '24 19:01 deepcs233

Hi! Could you show the output of nvidia-smi? I can not understand the screenshot :)

Of course! The usage of the GPUs looks like this. It can be found that all Carla process run on GPU 0. image Looking forward to your reply~

YilinGao-SHU avatar Jan 05 '24 04:01 YilinGao-SHU

Hi, this is my nvidia-smi output and it looks ok: image

the corresponginf script:

CUDA_VISIBLE_DEVICES=0 ./CarlaUE4.sh --world-port=2000 -opengl  &
sleep 1
CUDA_VISIBLE_DEVICES=1 ./CarlaUE4.sh --world-port=2002 -opengl  &
sleep 1
CUDA_VISIBLE_DEVICES=2 ./CarlaUE4.sh --world-port=2004 -opengl  &
sleep 1
CUDA_VISIBLE_DEVICES=3 ./CarlaUE4.sh --world-port=2006 -opengl  &
sleep 1

deepcs233 avatar Jan 05 '24 07:01 deepcs233

Thanks so much! I will have a try!

YilinGao-SHU avatar Jan 05 '24 07:01 YilinGao-SHU