From: Arnaud Giersch Date: Mon, 2 Apr 2012 11:43:42 +0000 (+0200) Subject: smpirun: turn error into warning only. X-Git-Tag: v3_7~124^2~19 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/dbe918800fbc9d06617113c8a71b363e09bbbf20?hp=ad64a3a9153f4e7a067ac0d1457251f65bb6e3d1;ds=sidebyside smpirun: turn error into warning only. --- diff --git a/examples/smpi/bcast.tesh b/examples/smpi/bcast.tesh index 50fe374e89..278d8dc7e4 100644 --- a/examples/smpi/bcast.tesh +++ b/examples/smpi/bcast.tesh @@ -32,6 +32,7 @@ $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/ p Test Broadcast with more processes than hosts ! setenv LD_LIBRARY_PATH=../../lib $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./bcast -q +> You requested to use 12 processes, but there is only 5 processes in your hostfile... > [rank 0] -> Tremblay > [rank 1] -> Jupiter > [rank 2] -> Fafard diff --git a/examples/smpi/reduce.tesh b/examples/smpi/reduce.tesh index 97ca2871b3..8725a0e98c 100644 --- a/examples/smpi/reduce.tesh +++ b/examples/smpi/reduce.tesh @@ -48,6 +48,7 @@ $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/ ! setenv LD_LIBRARY_PATH=../../lib p Test Reduce with 12 processes $ ../../bin/smpirun -map -hostfile ${srcdir:=.}/hostfile -platform ${srcdir:=.}/../msg/small_platform.xml -np 12 ./reduce -q +> You requested to use 12 processes, but there is only 5 processes in your hostfile... > [rank 0] -> Tremblay > [rank 1] -> Jupiter > [rank 2] -> Fafard diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 45194ca6d5..1770c4b4db 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -155,8 +155,7 @@ fi if [ ${NUMPROCS} -gt ${hostfile_procs} ] ; then - echo "You requested to use ${NUMPROCS} processes, but there is only ${hostfile_procs} processes in your hostfile..." - exit 1 + echo "You requested to use ${NUMPROCS} processes, but there is only ${hostfile_procs} processes in your hostfile..." >&2 fi ##-------------------------------- DEFAULT or SPECIFIED PLATFORM --------------------------------------