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

Unset PMIX variables when configuring OpenMPI #3511

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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/o/openmpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import re
from easybuild.tools import LooseVersion

import easybuild.tools.environment as env
import easybuild.tools.toolchain as toolchain
from easybuild.easyblocks.generic.configuremake import ConfigureMake
from easybuild.framework.easyconfig.constants import EASYCONFIG_CONSTANTS
Expand Down Expand Up @@ -140,6 +141,13 @@ def config_opt_used(key, enable_opt=False):
else:
self.cfg.update('configopts', '--without-verbs')

if '--with-pmix' in self.cfg['configopts']:
# Unset PMIX variables potentially set by SLURM which may cause configure errors such as
# > configure: WARNING: OPAL_VAR_SCOPE_PUSH called on "PMIX_VERSION",
# > configure: WARNING: but it is already defined with value "3.2.3"
# > configure: WARNING: This usually indicates an error in configure.
# > configure: error: Cannot continue
env.unset_env_vars([v for v in os.environ if v.startswith("PMIX_")])
super(EB_OpenMPI, self).configure_step()

def test_step(self):
Expand Down
Loading