From dbe918800fbc9d06617113c8a71b363e09bbbf20 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 2 Apr 2012 13:43:42 +0200 Subject: [PATCH] smpirun: turn error into warning only. --- examples/smpi/bcast.tesh | 1 + examples/smpi/reduce.tesh | 1 + src/smpi/smpirun.in | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) 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 -------------------------------------- -- 2.20.1