Skip to content

Commit 84c839a

Browse files
committed
jenkins: Properly detect Open MPI 2.0 series
mpirun_version will be major.minor (without a .release), so look for 2.0* instead of 2.0.* when determining whether or not --get-stack-traces will work. Signed-off-by: Brian Barrett <[email protected]>
1 parent 8549787 commit 84c839a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jenkins/open-mpi-build-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ if test "${MPIRUN_MODE}" != "none"; then
217217
mpirun_version=`"${WORKSPACE}/install/bin/mpirun" --version | sed -n 's/.*\([0-9]\+\.[0-9]\+\)\..*/\1/p'`
218218
echo "--> mpirun version: ${mpirun_version}"
219219
case ${mpirun_version} in
220-
1.*|2.0.*)
220+
1.*|2.0*)
221221
exec="timeout -s SIGSEGV 3m mpirun -hostfile ${WORKSPACE}/hostfile -np 2 "
222222
;;
223223
*)

0 commit comments

Comments
 (0)