Problems with egl rendering

Aperta
#415 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@saran-t ci sta già lavorando.

Dal 24/6/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

I am working on a mujoco simulation inside a docker container (using nvidia-docker for GPU access). My simulation use egl for hardware rendering and on my local machine works perfectly. I would like to run my simulation on a server with 3 NVIDIA A40.
When I run this script in the same docker image but on the server

import os
os.environ["MUJOCO_GL"]="egl"
os.environ["MUJOCO_EGL_DEVICE_ID"] = "1"
from dm_control import mujoco

I get this error:

ImportError: Cannot initialize a headless EGL display.

Server:
Nvidia Driver Version: 525.85.12 CUDA Version: 12.0

Local Machine:
Nvidia Driver Version: 525.116.04 CUDA Version: 12.0

If I use osmesa (os.environ["MUJOCO_GL"]="egl") everything works correctly. But I would like to use egl.
I tried to install libnvidia-gl (apt install libnvidia-gl-525) as in #214 and #365. but I get the same error.

I should also add that I do not use NVIDIA Multi-Instance GPU.
Am I doing something wrong here?
Thank you in advance for the support!

Lingua principale
Python
Stelle
4.7k
Fork
778
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google-deepmind/dm_control

Tutte le issue di google-deepmind/dm_control

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.