Skip to content

Commit

Permalink
Merge pull request easybuilders#3383 from damianam/psmpi_msa_pmix
Browse files Browse the repository at this point in the history
To add MSA and specially PMIx support for ParaStationMPI
  • Loading branch information
SebastianAchilles authored Jul 24, 2024
2 parents c4951c7 + a136909 commit 38cea13
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions easybuild/easyblocks/p/psmpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def extra_options(extra_vars=None):
'threaded': [False, "Enable multithreaded build (which is slower)", CUSTOM],
'pscom_allin_path': [None, "Enable pscom integration by giving its source path", CUSTOM],
'cuda': [False, "Enable CUDA awareness", CUSTOM],
'msa': [False, "Enable MSA awareness", CUSTOM],
'pmix': [None, "Enable PMIx support", CUSTOM],
})
return extra_vars

Expand Down Expand Up @@ -88,6 +90,10 @@ def configure_step(self):
self.log.info("Enabling CUDA-Awareness...")
self.cfg.update('configopts', ' --with-cuda')

if self.cfg['msa']:
self.log.info("Enabling MSA-Awareness...")
self.cfg.update('configopts', ' --with-msa-awareness')

# Set confset
comp_fam = self.toolchain.comp_family()
if comp_fam in comp_opts:
Expand All @@ -104,6 +110,18 @@ def configure_step(self):
if self.cfg['mpich_opts'] is not None:
self.cfg.update('configopts', ' --with-mpichconf="%s"' % self.cfg['mpich_opts'])

# Add PMIx support
pmix_path = get_software_root('PMIx')
# No specific value passed to the option, so automatically determine it judging the dependencies
if self.cfg['pmix'] is None and pmix_path:
self.cfg.update('configopts', ' --with-pmix="%s"' % pmix_path)
# A particular value was added, so act accordingly
elif self.cfg['pmix']:
if pmix_path:
self.cfg.update('configopts', ' --with-pmix="%s"' % pmix_path)
else:
self.cfg.update('configopts', ' --with-pmix')

# Lastly, set pscom related variables
if self.cfg['pscom_allin_path'] is None:
pscom_path = get_software_root('pscom')
Expand Down

0 comments on commit 38cea13

Please sign in to comment.