opendilab / LMDrive

[CVPR 2024] LMDrive: Closed-Loop End-to-End Driving with Large Language Models
Apache License 2.0
526 stars 48 forks source link

carla can't run on GPU #42

Open Morizb opened 2 months ago

Morizb commented 2 months ago

Hi, I'm using two terminals to run carla and evaluation code separately.

I installed carla in a conda environment on a remote server, installed openGL in a docker container, and used ssh to remotely connect to Mabaxterm and configure X11-forwarding for visualization.

Execute the following command to run carla: CUDA_VISIBLE_DEVICES=0 . /carla/CarlaUE4.sh -prefernvidia -opengl -carla-server -benchmark -fps=5 -nosound --world-port=15302 image

image

But carla runs without GPU, resulting in rendering no environment. image

Can you please tell me how to solve this problem?

Morizb commented 2 months ago

Hi, I previously applied for two V100 graphics cards, when I switched to applying for two A100 cards, the EVALUATION phase works, but it still doesn't seem to be running on the GPU.

When I start the carla server, only the CPU is used. image

Execute the code CUDA_VISIBLE_DEVICES=0 . /leaderboard/scripts/run_evaluation.sh after that the GPU only started to be used.

Also, the pygame is not smooth, it is changing frame by frame, I think due to not running on GPU, do you know how to fix it? 51b05eb18c6181df7b8c8bbbfb5aaa5

deepcs233 commented 2 months ago

Hi! Could you just try: . /carla/CarlaUE4.sh -carla-server --world-port=15302

Maybe you can find more information at https://github.com/carla-simulator/carla/issues