X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/31995feaea3e1ba5e1d3398e0497b85749625739..d876530d917b12a0bcebf40d83ed493da2c9303d:/src/smpi/smpirun.in diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 0fda9b4c3f..b2699d909c 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -45,12 +45,7 @@ while true; do ;; "-map") - MAPOPT="on" - shift 1 - ;; - - "-quiet") - QUIET="true" + MAPOPT="true" shift 1 ;; @@ -59,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):" @@ -67,9 +62,12 @@ while true; do echo exit ;; - - "--cfg="*) - SIMOPTS="$SIMOPTS $1" + + "--cfg="*|"--log="*) + for OPT in ${1#*=} + do + SIMOPTS="$SIMOPTS ${1%%=*}=$OPT" + done shift 1 ;; *) @@ -87,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 0 $((${NUMPROCS}-1))` +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]}" + if [ -n "${MAPOPT}" ]; then + echo "[rank $i] -> ${hostnames[$j]}" fi if [ -z "${hostnames[$j]}" ]; then @@ -175,17 +186,14 @@ cat >> ${APPLICATIONTMP} <