Преглед изворни кода

contrib/ci.inria.fr/job-1-check.sh: only set -oversubscribe when available

Nathalie Furmento пре 4 година
родитељ
комит
42b3a75e15
1 измењених фајлова са 9 додато и 1 уклоњено
  1. 9 1
      contrib/ci.inria.fr/job-1-check.sh

+ 9 - 1
contrib/ci.inria.fr/job-1-check.sh

@@ -68,7 +68,15 @@ fi
 
 export CC=gcc
 
-CONFIGURE_OPTIONS="--enable-debug --enable-verbose --enable-mpi-check --disable-build-doc  --with-mpiexec-args=-oversubscribe"
+mpiexec -oversubscribe pwd 2>/dev/null
+ret=$?
+ARGS=""
+if test "$ret" = "0"
+then
+    ARGS="--with-mpiexec-args=-oversubscribe"
+fi
+
+CONFIGURE_OPTIONS="--enable-debug --enable-verbose --enable-mpi-check --disable-build-doc $ARGS"
 CONFIGURE_CHECK=""
 day=$(date +%u)
 if test $day -le 5