Skip to content

Commit d06a71b

Browse files
authored
Merge branch 'main' into terse_older_eb
2 parents a0a9a21 + aa312e9 commit d06a71b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

eb_hooks.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,42 @@ def pre_configure_hook_openblas_optarch_generic(self, *args, **kwargs):
920920
raise EasyBuildError("OpenBLAS-specific hook triggered for non-OpenBLAS easyconfig?!")
921921

922922

923+
def pre_configure_hook_openmpi_ipv6(self, *args, **kwargs):
924+
"""
925+
Pre-configure hook to enable IPv6 support in OpenMPI from EESSI 2025.06 onwards
926+
"""
927+
if self.name == 'OpenMPI':
928+
eessi_version = get_eessi_envvar('EESSI_VERSION')
929+
if eessi_version and LooseVersion(eessi_version) >= '2025.06':
930+
self.cfg.update('configopts', '--enable-ipv6')
931+
else:
932+
raise EasyBuildError("OpenMPI-specific hook triggered for non-OpenMPI easyconfig?!")
933+
934+
935+
def pre_configure_hook_pmix_ipv6(self, *args, **kwargs):
936+
"""
937+
Pre-configure hook to enable IPv6 support in PMIx from EESSI 2025.06 onwards
938+
"""
939+
if self.name == 'PMIx':
940+
eessi_version = get_eessi_envvar('EESSI_VERSION')
941+
if eessi_version and LooseVersion(eessi_version) >= '2025.06':
942+
self.cfg.update('configopts', '--enable-ipv6')
943+
else:
944+
raise EasyBuildError("PMIx-specific hook triggered for non-PMIx easyconfig?!")
945+
946+
947+
def pre_configure_hook_prrte_ipv6(self, *args, **kwargs):
948+
"""
949+
Pre-configure hook to enable IPv6 support in PRRTE from EESSI 2025.06 onwards
950+
"""
951+
if self.name == 'PRRTE':
952+
eessi_version = get_eessi_envvar('EESSI_VERSION')
953+
if eessi_version and LooseVersion(eessi_version) >= '2025.06':
954+
self.cfg.update('configopts', '--enable-ipv6')
955+
else:
956+
raise EasyBuildError("PRRTE-specific hook triggered for non-PRRTE easyconfig?!")
957+
958+
923959
def pre_configure_hook_libfabric_disable_psm3_x86_64_generic(self, *args, **kwargs):
924960
"""Add --disable-psm3 to libfabric configure options when building with --optarch=GENERIC on x86_64."""
925961
if self.name == 'libfabric':
@@ -1539,6 +1575,9 @@ def post_easyblock_hook(self, *args, **kwargs):
15391575
'ROCm-LLVM': pre_configure_hook_llvm,
15401576
'MetaBAT': pre_configure_hook_metabat_filtered_zlib_dep,
15411577
'OpenBLAS': pre_configure_hook_openblas_optarch_generic,
1578+
'OpenMPI': pre_configure_hook_openmpi_ipv6,
1579+
'PMIx': pre_configure_hook_pmix_ipv6,
1580+
'PRRTE': pre_configure_hook_prrte_ipv6,
15421581
'WRF': pre_configure_hook_wrf_aarch64,
15431582
'LAMMPS': pre_configure_hook_LAMMPS_zen4,
15441583
'Score-P': pre_configure_hook_score_p,

0 commit comments

Comments
 (0)