diff --git a/hoomd/__init__.py b/hoomd/__init__.py index 614533c9f6..4957c6a62f 100644 --- a/hoomd/__init__.py +++ b/hoomd/__init__.py @@ -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:")