Detect the correct nvidia lib path for modern ubuntu systems #646
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am glad to see that this package is still maintained (and should be), given that
mujoco-py
is very widely used in the research community, and we are expecting a new release for mujuco 2.1 support as #640 has been finally merged. I think this is another patch that would be very nice to include towards the next release.To enable GPU extensions, previously either
/usr/local/nvidia/lib64
(for dockers) or/usr/lib/nvidia-\d\d\d
needed to exist, but in most of the modern debian and ubuntu systems, the nvidia libraries are actually installed under the path/usr/lib/nvidia
.The commit corrects the path to nvidia library path so that GPU extensions can be installed without any hacky workarounds, to name a few: #583 #383 #408, where users had to do the following hack: