X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a3cfaa2faa67ffc56086239c68bc548fc48f3e62..0c8f6e25b5f4c2d43e89c600b99d63b4362f71ac:/src/smpi/smpirun.in diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 49ea4e1bb3..b2699d909c 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -43,7 +43,7 @@ while true; do fi shift 2 ;; - + "-map") MAPOPT="true" shift 1 @@ -54,7 +54,7 @@ while true; do shift 1 ;; - "-help" | "--help" | "-h") + "-help" | "--help" | "-h") echo "usage:" echo "$0 [-quiet] [-keep-temps] [-np ] -platform -hostfile [-map] program [program-options]" echo "or (deprecated usage):" @@ -62,12 +62,12 @@ while true; do echo exit ;; - + "--cfg="*|"--log="*) for OPT in ${1#*=} do SIMOPTS="$SIMOPTS ${1%%=*}=$OPT" - done + done shift 1 ;; *) @@ -85,7 +85,7 @@ shift ##-------------------------------- DEFAULT or SPECIFIED PLATFORM -------------------------------------- -if [ -z "${PLATFORM}" ]; then +if [ -z "${PLATFORM}" ]; then PLATFORMTMP="$(mktemp tmpXXXXXX)" cat > ${PLATFORMTMP} < tags------------------------------ -for i in ${SEQ} +for i in ${SEQ} do if [ -n "${HOSTFILE}" ]; then j=$(( $i % ${NUMHOSTS} )) - fi + fi ##---- optional display of ranks to process mapping if [ -n "${MAPOPT}" ]; then - echo "[rank $i] -> ${hostnames[$j]}" + echo "[rank $i] -> ${hostnames[$j]}" fi if [ -z "${hostnames[$j]}" ]; then @@ -193,7 +193,7 @@ ${EXEC} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP} if [ -z "${KEEP}" ] ; then if [ -z "${PLATFORM}" ]; then - rm ${PLATFORMTMP} + rm ${PLATFORMTMP} fi rm ${APPLICATIONTMP} fi