diff --git a/easybuild/easyblocks/p/psmpi.py b/easybuild/easyblocks/p/psmpi.py index 82e9c33443..9d91dd09d3 100644 --- a/easybuild/easyblocks/p/psmpi.py +++ b/easybuild/easyblocks/p/psmpi.py @@ -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() @@ -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: