Skip to content
Snippets Groups Projects
Commit 22644776 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

release script: Account for newer Open MPI versions.

* Some checks might otherwise fail if the system has less slots
  than some checks demand.
parent cc25f725
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,19 @@ for ((i=0; i < 2; ++i)); do
if ((i == 0)); then
args+=(--enable-maintainer-mode)
fi
mpirun_version=$(mpirun --version)
case $mpirun_version in
('mpirun (Open MPI)'*)
if [[ "$mpirun_version" =~ ^mpirun\ \(Open\ MPI\)\ ([0-9]+\.[0-9.]+) ]]; then
mpirun_version=${BASH_REMATCH[1]}
if printf '%s\n' "5.0" "${mpirun_version}" | sort -C -V ; then
MAKE_DEBUG_ARGS+=('PRRTE_MCA_rmaps_default_mapping_policy=:oversubscribe')
elif printf '%s\n' "1.8.0" "${mpirun_version}" | sort -C -V ; then
MAKE_DEBUG_ARGS+=('OMPI_MCA_rmaps_base_oversubscribe=true')
fi
fi
;;
esac
"${SRC_DIR}"/configure "${args[@]}" \
|| { status=$? ; gzip -c config.log \
>"${SRC_DIR}/${log_dir}/make-distcheck-config.log.gz" ; exit $status ; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment