-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MjSim rendering doesn't use GPU #493
Comments
Maybe you're having the same issue I had? Check out #512 |
Make sure mujoco_py is using a shared module built with GPU:
If it prints something like mujoco_py/generated/cymj_2.0.2.9_37_linuxgpuextensionbuilder_37.so, you are good to go. Otherwise, you may need to rebuild it:
You need to have |
Thanks for the suggestions! I'll try those out. |
Hi @wookayin. I got the output like this: mujoco_py/generated/cymj_2.0.2.13_37_linuxcpuextensionbuilder_37.so, and even I rebuild it, I cannot get the gpu version. Do you know how to deal with this? |
Hi @wangcongrobot , I had the same issue with you. Did you solve this problem? |
@prasoongoyal How do you check whether or not MuJoCo is running stuff on the GPU? |
^ you can check the output of nvidia-smi. It should show a "G" to the left of the python process. |
I'm running body_interaction.py example file on a remote server. Here's the code after making changes to run in headless mode:
Even though I specify device_id=1 in sim.render(), the process doesn't use the GPU. Neither does it throw any errors; it just falls back to using the CPU for rendering.
Any suggestions?
Thank you!
The text was updated successfully, but these errors were encountered: