Skip to content

Commit aea954f

Browse files
authored
Merge pull request ubccr#443 from ubccr/ompi-pmix
Adjust ompi/pmix builds and add java support
2 parents bc4ccbf + a498178 commit aea954f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

config/easybuild/2024.04/ccrsoft.py

+11-3
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,20 @@ def gcc_postprepare(self, *args, **kwargs):
5656
'EasyBuild': {
5757
'modluafooter': ('prepend_path("PATH", pathJoin(os.getenv("CCR_INIT_DIR"), "easybuild/bin"))', Op.REPLACE),
5858
},
59+
"PMIx": {
60+
'configopts': (' --with-munge=$EPREFIX/usr ', Op.PREPEND),
61+
},
5962
'OpenMPI': {
63+
'dependencies': (('Java', '11.0.20'), Op.APPEND_LIST),
6064
'builddependencies': ({'x86_64': [('opa-psm2', '12.0.1')]}.get(os.getenv('CCR_CPU_FAMILY'), []), Op.APPEND_LIST),
61-
'preconfigopts': ('LDFLAGS="-L/usr/lib/x86_64-linux-gnu/slurm" ', Op.APPEND),
62-
'configopts': ('--with-slurm --with-pmi=/opt/software/slurm --with-hwloc=external ', Op.PREPEND),
65+
'configopts': (
66+
'--with-slurm --with-pmix=external --with-libevent=external --with-hwloc=external --without-verbs ' +
67+
'--enable-mca-no-build=btl-uct ' +
68+
'--enable-mpi-java --with-jdk-bindir="${EBROOTJAVA}/bin" --with-jdk-headers="${EBROOTJAVA}/include" ',
69+
Op.PREPEND),
70+
6371
# See: https://github.com/easybuilders/easybuild-easyconfigs/issues/20233
64-
'modluafooter': ('setenv("OMPI_MCA_btl", "^ofi")\nsetenv("OMPI_MCA_mtl", "^ofi")', Op.APPEND),
72+
'modluafooter': ('setenv("OMPI_MCA_btl", "^ofi,openib")\nsetenv("OMPI_MCA_mtl", "^ofi")', Op.APPEND),
6573
},
6674
'UCX': {
6775
'configopts': ('--with-rdmacm=$EPREFIX/usr --with-verbs=$EPREFIX/usr ', Op.PREPEND),

0 commit comments

Comments
 (0)