Using switcherooctl to launch CarlaUE4.sh on GPU #5017
farhanhubble
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I launched Carla on my laptop that has a 4GB Nvidia 1050Ti GPU. The graphics took several minutes to come up and even then the output looked weirdly glary. I checked
nvidia-smiand it seemed that the process was not running on the GPU. I am running Fedora 35 and I have deliberately configured my system to use the builtin Intel GPU by default.In previous versions of Fedora I was using
optirunto launch applications that required a GPU for rendering or other CUDA support. While my system shows an option to run installed applications using a dedicated GPU, I was not sure how to that for an application being launched from the command line. After researching a bit on how it works under the hood, I found out that there is a utility on newer Linux releases by the nameswitcherooctl. I was able to useswitcherooctl listto get the ID for the Nvidia GPU and then usedswitcherooctl launch -g GPU_ID ./CarlaUE4.shto run Carla on the GPU. It's considerably faster and the graphics look natural.Before vs After
All reactions