Gazebo | Ignition | Community
Ask Your Question
1

Gazebo doesn't use GPU when run inside a container

asked 2020-08-24 02:22:01 -0500

shantia gravatar image

Hi Everyone, I have set up a singularity container (Ubuntu 16.04, Ros Kinetic, Gazebo 7.16), and I am running it on an HPC(high performance computing cluster). Everything is set up, I have access to Nvidia libraries, I can run OpenGL apps, and I also have CUDA. However, the gzserver and gzclient process refuse to use the GPU. This means that my robot's laser and camera render is stuck to 2 and 7 Hz. Does anyone know how can I force it? It is notable that the gazebo uses the GPU when I run the container on my own PC with Ubuntu 20.04 as a host. Any suggestions are welcome.

edit retag flag offensive close merge delete

Comments

Di you solve your issue? I am sort of struggling with the same.

Basti gravatar imageBasti ( 2021-03-16 04:57:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-29 14:39:16 -0500

HuguesTHOMAS gravatar image

updated 2021-03-29 14:42:13 -0500

I have the same issue. I run ROS/gazebo in a docker container that runs on a remote computer (Ubuntu 18.04). The docker image is based on "nvcr.io/nvidia/cudagl:10.1-devel-ubuntu18.04", and has ROS Melodic, Gazebo 9.16 installed. Except for Gazebo, I can run other OpenGL/CUDA apps, I can even train neural networks on the GPU. But Gazebo won't use the GPU.

Another detail that could help the resolution: I have physical access to the remote machine, so I can run my code on it without ssh. When I do that, gazebo uses the GPU correctly.

Anyone have found a solution to fix this?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2020-08-24 02:22:01 -0500

Seen: 211 times

Last updated: Mar 29