carla: cannot run Carla using nvidia GPU under Linux with multi-GPU installed : PRIME instruction ignored by Carla
This issue is linked to closed issues : #3920 #3490 #3196 #2396 #2490
I don’t think this should be played down, because it seems most Linux users using dual GPU have this issue and either quit trying either switch to using the intel GPU instead of their available Nvidia.
CARLA version: carla-simulator-0.9.12 4.26.2-0+++UE4+Release-4.26 522 0 Platform/OS: Ubuntu 20.04.3 LTS Problem you have experienced: cannot launch carla
Steps to reproduce:
I think Carla is grabbing the first active GPU device (message about MESA points toward intel GPU), instead of the one selected by PRIME. See screenshot below.

Using -opengl do not make things work, I get a message box and then the same error + coredump as without -opengl

- How to run Carla unde Linux when using Prime selector and not blacklisting devices ?
- How to check which GPU is using Carla ?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 16
I experience the same issue. I used the use the
-opengloption to run the previous version. There is also an issue to run Docker file #4755 . I found a workaround adding the option-prefernvidiawhich seemed to solve the problem.Full command line :
./CarlaUE4.sh -prefernvidiaJust was having the same issue. Looks like a workaround is to force Carla to use nvidia by:
DRI_PRIME=1 ./CarlaUE4.shThis allowed me to run the app successfully andnvidia-smishowed it running on the nvidia card. I still get the MESA-INTEL warning, however.Thanks @caillotantoine,
./CarlaUE4.sh -prefernvidiaworked for me too