How to default to EGL on GPU and OSMESA on CPU?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- computer-graphics, machine-learning
Direzione di ricerca
Inizia tracciando come viene selezionata la preferenza tra i backend GLFW, EGL e OSMESA e come viene gestito MUJOCO_GL. Confronta le opzioni per un ordinamento configurabile dei backend o per impostazioni predefinite consapevoli della GPU, quindi verifica che le macchine con GPU scelgano EGL headless, mentre quelle dotate solo di CPU ricorrano a OSMESA senza richiedere configurazioni dell’ambiente utente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Right now, the preference order is glfw > egl > osmesa. In the common scenario of training an RL agent on a GPU machine, this means windows will pop up, which is typically not desired. I could also pin os.environ['MUJOCO_GL'] = 'egl' in my code to avoid this behavior. However, then the code will crash when running on a CPU-only machine.
Is there any way to set up my RL training code so that it will do headless rendering on GPU but osmesa on CPU, skipping the glfw backend? The goal here is for my RL training code to work out of the box when other people run it, without them having to set up their own env variable.
The potential workarounds I can think of all have their own downsides:
- Detecting whether the machine has a GPU by asking the deep learning framework, to only set the backend to EGL if a GPU is available: This would require importing JAX inside the env processes and hog GPU memory.
- Detecting whether the machine has a GPU by checking for common executable like nvcc or nvidia-smi: This doesn't work in many server environments (including internally at Google), where those binaries aren't available at runtime.
If DMC would just allow specifying a preference order for the backends or change the default to favor EGL over GLFW, that would simplify things a lot.
- Lingua principale
- Python
- Stelle
- 4.7k
- Fork
- 765
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di google-deepmind/dm_control
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
google-deepmind/dm_control#552 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
google-deepmind/dm_control#540 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
google-deepmind/dm_control#537 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
google-deepmind/dm_control#529 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
google-deepmind/dm_control#527 · 1 commento ·
Tutte le issue di google-deepmind/dm_control
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/skills#1811 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
datalayer/mcp-compose#42 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
UKGovernmentBEIS/inspect_evals#2523 ·