Skip to content

Commit

Permalink
Merge pull request #3349 from boegel/5.0.x
Browse files Browse the repository at this point in the history
sync with develop (20240605)
  • Loading branch information
smoors committed Jun 5, 2024
2 parents 3f8fccd + e29d315 commit 4533001
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 108 deletions.
12 changes: 9 additions & 3 deletions easybuild/easyblocks/o/openmpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def config_opt_used(key, enable_opt=False):
known_dependencies = ['CUDA', 'hwloc', 'libevent', 'libfabric', 'PMIx', 'UCX']
if LooseVersion(self.version) >= '4.1.4':
known_dependencies.append('UCC')
if LooseVersion(self.version) >= '5.0.0':
known_dependencies.append('PRRTE')

# Value to use for `--with-<dep>=<value>` if the dependency is not specified in the easyconfig
# No entry is interpreted as no option added at all
Expand All @@ -85,6 +87,8 @@ def config_opt_used(key, enable_opt=False):
# For these the default is to use an internal copy and not using any is not supported
for dep in ('hwloc', 'libevent', 'PMIx'):
unused_dep_value[dep] = 'internal'
if LooseVersion(self.version) >= '5.0.0':
unused_dep_value['PRRTE'] = 'internal'

# handle dependencies
for dep in known_dependencies:
Expand Down Expand Up @@ -165,21 +169,23 @@ def sanity_check_step(self):

bin_names = ['mpicc', 'mpicxx', 'mpif90', 'mpifort', 'mpirun', 'ompi_info', 'opal_wrapper']
if LooseVersion(self.version) >= LooseVersion('5.0.0'):
bin_names.append('prterun')
if not get_software_root('PRRTE'):
bin_names.append('prterun')
else:
bin_names.append('orterun')
bin_files = [os.path.join('bin', x) for x in bin_names]

shlib_ext = get_shared_lib_ext()
lib_names = ['mpi_mpifh', 'mpi', 'open-pal']
if LooseVersion(self.version) >= LooseVersion('5.0.0'):
lib_names.append('prrte')
if not get_software_root('PRRTE'):
lib_names.append('prrte')
else:
lib_names.extend(['ompitrace', 'open-rte'])
lib_files = [os.path.join('lib', 'lib%s.%s' % (x, shlib_ext)) for x in lib_names]

inc_names = ['mpi-ext', 'mpif-config', 'mpif', 'mpi', 'mpi_portable_platform']
if LooseVersion(self.version) >= LooseVersion('5.0.0'):
if LooseVersion(self.version) >= LooseVersion('5.0.0') and not get_software_root('PRRTE'):
inc_names.append('prte')
inc_files = [os.path.join('include', x + '.h') for x in inc_names]

Expand Down
Loading

0 comments on commit 4533001

Please sign in to comment.