X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5193d31089b0e9d2a564d425f61fdbc27e01af60..6865db1b80d2d06c80ff82e7246821958b56e2d2:/src/smpi/smpirun.in diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 5d962e4e4a..a8c75e1290 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -33,7 +33,7 @@ usage () { Usage: $0 [OPTIONS] -platform -hostfile program [program-options] Options: -keep-temps # don't remove the generated files after execution - -wrapper # use command to run the program (e.g. "valgrind") + -wrapper # use command to run the program (e.g. "valgrind" or "gdb --args") -map # display the machine on which each process rank is mapped -np # use that amount of processes from the hostfile. # By default, all processes of the hostfile are used. @@ -323,7 +323,7 @@ if [ -z "${NUMPROCS}" ] ; then fi if [ ${NUMPROCS} -gt ${hostfile_procs} ] ; then - echo "You requested to use ${NUMPROCS} processes, but there is only ${hostfile_procs} processes in your hostfile..." >&2 + echo "You requested to use ${NUMPROCS} ranks, but there is only ${hostfile_procs} processes in your hostfile..." >&2 fi ##-------------------------------- DEFAULT or SPECIFIED PLATFORM -------------------------------------- @@ -333,8 +333,8 @@ if [ -z "${PLATFORM}" ]; then cat > ${PLATFORMTMP} < - - + + PLATFORMHEAD i=${NUMPROCS} @@ -360,7 +360,7 @@ PLATFORMHEAD done cat >> ${PLATFORMTMP} < + PLATFORMFOOT @@ -375,7 +375,7 @@ APPLICATIONTMP="$(mktemp smpitmp-appXXXXXX)" cat > ${APPLICATIONTMP} < - + APPLICATIONHEAD ##---- cache hostnames of hostfile--------------- @@ -415,7 +415,7 @@ fi set -- $hostnames -##---- generate tags------------------------------ +##---- generate tags------------------------------ #prepare arguments at once for ARG in $PROC_ARGS; do XML_ARGS="${XML_ARGS}"" @@ -427,12 +427,12 @@ do j=$(( $i % ${hostfile_procs} + 1 )) host=$(eval "echo \${$j}") - ##---- optional display of ranks to process mapping + ##---- optional display of ranks to actor mapping if [ ${MAPOPT} = 1 ]; then echo "[rank $i] -> $host" fi - echo " + echo " " >> ${APPLICATIONTMP} if [ ${REPLAY} = 1 ]; then @@ -444,7 +444,7 @@ do else echo ${XML_ARGS} >> ${APPLICATIONTMP} fi - echo " " >> ${APPLICATIONTMP} + echo " " >> ${APPLICATIONTMP} done cat >> ${APPLICATIONTMP} <