Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carla can't run on GPU #42

Open
Morizb opened this issue Apr 4, 2024 · 2 comments
Open

carla can't run on GPU #42

Morizb opened this issue Apr 4, 2024 · 2 comments

Comments

@Morizb
Copy link

Morizb commented Apr 4, 2024

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 Morizb changed the title carla runs without the GPU carla can't run on GPU Apr 4, 2024
@Morizb
Copy link
Author

Morizb commented Apr 6, 2024

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants