Skip to content

Commit

Permalink
psmpi: To support the renaming of a couple of options in this version
Browse files Browse the repository at this point in the history
  • Loading branch information
damianam committed Aug 23, 2024
1 parent 078a512 commit 3dbb2c0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions easybuild/easyblocks/p/psmpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def configure_step(self):

if self.cfg['msa']:
self.log.info("Enabling MSA-Awareness...")
self.cfg.update('configopts', ' --with-msa-awareness')
if LooseVersion(self.version) >= LooseVersion('5.10.0-1'):
self.cfg.update('configopts', ' --enable-msa-awareness')
else:
self.cfg.update('configopts', ' --with-msa-awareness')

# Set confset
comp_fam = self.toolchain.comp_family()
Expand All @@ -104,7 +107,10 @@ def configure_step(self):

# Enable threading, if necessary
if self.cfg['threaded']:
self.cfg.update('configopts', ' --with-threading')
if LooseVersion(self.version) >= LooseVersion('5.10.0-1'):
self.cfg.update('configopts', ' --enable-threading')
else:
self.cfg.update('configopts', ' --with-threading')

# Add extra mpich options, if any
if self.cfg['mpich_opts'] is not None:
Expand Down

0 comments on commit 3dbb2c0

Please sign in to comment.