Commit c18f8557 authored by Caubet Serrabou Marc's avatar Caubet Serrabou Marc

OpenMPI

parent 07246ad9
......@@ -26,20 +26,44 @@ pbuild::pre_configure() {
pbuild::add_configure_args "--with-slurm=yes"
local version
(( version = (${V_MAJOR} * 100 + ${V_MINOR}) * 100 + V_PATCHLVL ))
if (( version < 30104 )) ; then
if (( V_MAJOR < 4 )); then
pbuild::add_configure_args "--enable-mpi-f90"
pbuild::add_configure_args "--enable-mpi-profile"
pbuild::add_configure_args "--enable-smp-locks"
if (( version >= 30104 )); then
# 18.11.2019 by caubet_m
pbuild::add_configure_args "--with-pmi"
pbuild::add_configure_args "--with-pmi-libdir=/usr/lib64/"
pbuild::add_configure_args "--with-pmix=/opt/pmix/2.2.3"
pbuild::add_configure_args "--with-pmix-libdir=/opt/pmix/2.2.3/lib64/"
pbuild::add_configure_args "--enable-install-libpmix"
pbuild::add_configure_args "--with-hwloc"
pbuild::add_configure_args "--with-libevent"
pbuild::add_configure_args "--with-ucx"
fi
elif (( V_MAJOR >= 4 )); then
pbuild::add_configure_args "--enable-mpi-fortran"
# 18.11.2019 by caubet_m
pbuild::add_configure_args "--with-pmi"
pbuild::add_configure_args "--with-pmi-libdir=/usr/lib64/"
pbuild::add_configure_args "--with-pmix=/opt/pmix/2.2.3"
pbuild::add_configure_args "--with-pmix-libdir=/opt/pmix/2.2.3/lib64/"
pbuild::add_configure_args "--enable-install-libpmix"
pbuild::add_configure_args "--with-hwloc"
pbuild::add_configure_args "--with-libevent"
pbuild::add_configure_args "--with-ucx"
fi
}
pbuild::post_install() {
mkdir -p "${PREFIX}/lib/fallback"
local -r binary=$(ls "${PREFIX}"/lib/libmpi.so.*.*.*)
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/usr/.*/libuc[mpst].so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/usr/.*/libnuma.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/usr/.*/libbverbs.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/usr/.*/librdmacm.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/libuc[mpst].so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/libnuma.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/libibverbs.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/librdmacm.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/libpmix.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/libhwloc.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/libpmi.so'
pbuild::install_shared_libs "${binary}" "${PREFIX}/lib/fallback" '/libpmi2.so'
}
openmpi/3.1.4_merlin6 stable gcc/{7.4.0,8.3.0}
openmpi/3.1.4_merlin6 stable gcc/{7.4.0,8.3.0}
openmpi/3.1.5_merlin6 stable gcc/{7.4.0,8.3.0,9.2.0}
openmpi/3.1.5_merlin6 unstable intel/{15.2,17.4,18.4}
......@@ -28,9 +28,13 @@ setenv MPIRUN $PREFIX/bin/mpirun
set libibverbs [glob -nocomplain /usr/lib{64,}/libibverbs.so.1*]
set libnuma [glob -nocomplain /usr/lib{64,}/libnuma.so.1*]
set librdmacm [glob -nocomplain /usr/lib{64,}/librdmacm.so.1*]
set libucx [glob -nocomplain /usr/lib{64,}/libuc[mpst].so.0*]
set libucx [glob -nocomplain /usr/lib{64,}/libuc\[mpst\].so.0*]
set libhwloc [glob -nocomplain /usr/lib{64,}/libhwloc.so.5*]
set libpmi [glob -nocomplain /usr/lib{64,}/libpmi.so.0*]
set libpmi2 [glob -nocomplain /usr/lib{64,}/libpmi2.so.0*]
set libpmix [glob -nocomplain /opt/pmix/*/lib{64,}/libpmix.so.2*]
if { $libibverbs eq "" || $libnuma eq "" || $librdmacm eq "" || $libucx eq "" } {
if { $libibverbs eq "" || $libnuma eq "" || $librdmacm eq "" || $libucx eq "" || $libpmix eq "" || $libhwloc eq "" || $libpmi eq "" || $libpmi2 eq "" } {
if { [file isdirectory $PREFIX/lib/fallback] } {
prepend-path LD_LIBRARY_PATH $PREFIX/lib/fallback
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment