Skip to content

Commit

Permalink
Merge pull request #1850 from glotzerlab/fix-slurm-conf-error
Browse files Browse the repository at this point in the history
Allow dynamic loading of slurm_conf on Anvil.
  • Loading branch information
joaander authored Jul 22, 2024
2 parents 9cbd697 + f09eab7 commit 415dae8
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 415dae8

Please sign in to comment.