#usage to print the way this script should be called
function usage () {
echo "usage:"
- echo "$0 [-quiet] [-keep-temps]"
+ echo "$0 [-keep-temps]"
echo " [-np <numprocs>] -platform <xmldesc> -hostfile <hostfile> [-map] program [program-options]"
echo " [-keep-temps] # don't remove the generated files after execution"
echo " [-map] # display the machine on which each process rank is mapped"
echo " [-trace-triva] # generate configuration for Triva's GraphView"
echo " [-trace-file <tracefile>] # name of the tracefile (simgrid_smpi.trace)"
echo "or (deprecated usage):"
- echo "$0 [-quiet] [-keep-temps] [-np <numprocs>] [-bandwidth <bytes/sec>] [-latency <secs>] program [program-options]"
+ echo "$0 [-keep-temps] [-np <numprocs>] [-bandwidth <bytes/sec>] [-latency <secs>] program [program-options]"
echo
}
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 --------------------------------------