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

Allow dynamic loading of slurm_conf on Anvil. #1850

Merged
merged 3 commits into from
Jul 22, 2024
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
5 changes: 5 additions & 0 deletions hoomd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
import os
import signal

# Work around /usr/lib64/slurm/auth_munge.so: undefined symbol: slurm_conf
# error on Purdue Anvil.
if os.environ.get('RCAC_CLUSTER') == 'anvil':
sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL)

if ((pathlib.Path(__file__).parent / 'CMakeLists.txt').exists()
and 'SPHINX' not in os.environ):
print("It appears that hoomd is being imported from the source directory:")
Expand Down