openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.81k stars 810 forks source link

I can use env.render() with V100-32G GPU #724

Open zhengsipeng opened 2 years ago

zhengsipeng commented 2 years ago

Hi, I can not use env.render() of mujoco_py using V100-32G GPU, it will always output such error:

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

However, my code runs well on P100 GPUs. So my question is: can V100 GPU support GPU rendering? If it can't, what else can I do?

famishedrover commented 11 months ago

Is it the same setup? [os / env variables / library version etc?]

can you try export LD_PRELOAD trick in my response here?