From: schnorr Date: Tue, 10 Aug 2010 11:32:26 +0000 (+0000) Subject: update on smpirun script to accept -trace argument with the name of the tracefile X-Git-Tag: v3_5~674 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1d4461b3c05d8f19d40b4aa29f86cb4fa8c80e58 update on smpirun script to accept -trace argument with the name of the tracefile details: - among other parameters, smpirun accepts: smpirun (...) -trace tracefile.trace (...) ./bcast (...) - the parameter is translated to the following options to the simulator --cfg=tracing/filename:${TRACEOPT} --cfg=tracing/smpi:1 where TRACEOPT is the trace file passed as parameter git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8147 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 236eab771a..6762c62498 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -54,6 +54,11 @@ while true; do shift 1 ;; + "-trace") + TRACEOPT="$2" + shift 2 + ;; + "-keep-temps") KEEP="true" shift 1 @@ -61,7 +66,7 @@ while true; do "-help" | "--help" | "-h") echo "usage:" - echo "$0 [-quiet] [-keep-temps] [-np ] -platform -hostfile [-map] program [program-options]" + echo "$0 [-quiet] [-keep-temps] [-trace ] [-np ] -platform -hostfile [-map] program [program-options]" echo "or (deprecated usage):" echo "$0 [-quiet] [-keep-temps] [-np ] [-bandwidth ] [-latency ] program [program-options]" echo @@ -190,10 +195,18 @@ cat >> ${APPLICATIONTMP} <