Metaworld icon indicating copy to clipboard operation
Metaworld copied to clipboard

can not render under Tesla-V100 GPU

Open zhengsipeng opened this issue 2 years ago • 2 comments

Hi, it seems that the same bug always exists under V100-32G GPU environment:

Found 0 GPUs for rendering. Using device 0.
File "mjsim.pyx", line 156, in mujoco_py.cymj.MjSim.render
  File "mjsim.pyx", line 158, in mujoco_py.cymj.MjSim.render
  File "mjrendercontext.pyx", line 46, in mujoco_py.cymj.MjRenderContext.__init__
  File "mjrendercontext.pyx", line 114, in mujoco_py.cymj.MjRenderContext._setup_opengl_context
  File "opengl_context.pyx", line 130, in mujoco_py.cymj.OffscreenOpenGLContext.__init__
RuntimeError: Failed to initialize OpenGL

My code works well on P100 GPUs, does it mean that metaworld/mujoco_py do not support V100 rendering? Have your ever encounter such problem using V100 GPUs?

zhengsipeng avatar Jun 15 '22 16:06 zhengsipeng

To be honest, I never tried rendering the environments on a gpu instance. I would run them headless and then render on my local non gpu machine, as I didn't need any of the rendered images during training, but only for evaluation purposes.

avnishn avatar Jun 15 '22 16:06 avnishn

I have faced this issue before which was solved by unset LD_PRELOAD variable for offscreen env.sim.render().

zcczhang avatar Jul 05 '22 03:07 zcczhang

As Meta-World ownership has been transferred from the RLWorkGroup to Farama Foundation, I am closing this issue. If there are any questions or requests for features please join our Discord

reginald-mclean avatar Feb 01 '23 15:02 reginald-mclean