Skip to content
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

enhance Mesa easyblock to append EGL vendor library directory path to $__EGL_VENDOR_LIBRARY_DIRS #2985

Merged
merged 3 commits into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions easybuild/easyblocks/m/mesa.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,11 @@ def sanity_check_step(self):
custom_paths['files'].extend(swr_arch_libs)

super(EB_Mesa, self).sanity_check_step(custom_paths=custom_paths)

def make_module_extra(self, *args, **kwargs):
""" Append to EGL vendor library path,
so that any NVidia libraries take precedence. """
txt = super(EB_Mesa, self).make_module_extra(*args, **kwargs)
# Append rather than prepend path to ensure that system NVidia drivers have priority.
txt += self.module_generator.append_paths('__EGL_VENDOR_LIBRARY_DIRS', 'share/glvnd/egl_vendor.d')
return txt
Loading