X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4bb60fefa54ed1665d3452e2a748d26904b46f37..04444a3077f46c717719a05b0c10b39d16a8c53a:/src/smpi/smpirun.in diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index c66761769b..d4e009e11f 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -27,7 +27,8 @@ Options: -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. - -trace # activate tracing + -trace-ti # activate time independant tracing (for replay, default in smpi_simgrid.txt) + -trace # activate tracing (Paje, default in smpi_simgrid.trace) -trace-comment # put a comment on the top of the trace file -trace-comment-file # put file contents on the top of the trace file as comment -trace-grouped # group MPI processes by location @@ -98,6 +99,12 @@ while true; do shift 1 ;; + "-trace-ti") + TRACE_ACTIVE="true" + TRACE_TI_ACTIVE="true" + shift 1 + ;; + "-trace-comment") TRACE_COMMENT="$2" shift 2 @@ -196,6 +203,7 @@ if [ -z "${HOSTFILE}" ] && [ -z "${PLATFORM}" ] ; then exit 1 fi +HOSTFILETMP=0 if [ -z "${HOSTFILE}" ] ; then HOSTFILETMP=1 HOSTFILE="$(mktemp tmphostXXXXXX)" @@ -340,10 +348,17 @@ APPLICATIONFOOT ##---------------------- SMPI TRACING OPTIONS --------------------------------- if [ -n "${TRACE_ACTIVE}" ]; then #define trace filename - if [ -z "${TRACE_FILENAME}" ]; then - TRACE_FILENAME="smpi_simgrid.trace" + if [ -n "${TRACE_TI_ACTIVE}" ]; then + if [ -z "${TRACE_FILENAME}" ]; then + TRACE_FILENAME="smpi_simgrid.txt" + fi + TRACEOPTIONS="--cfg=tracing:1 --cfg=tracing/filename:${TRACE_FILENAME} --cfg=tracing/smpi:1 --cfg=tracing/smpi/format:TI --cfg=tracing/smpi/computing:1" + else + if [ -z "${TRACE_FILENAME}" ]; then + TRACE_FILENAME="smpi_simgrid.trace" + fi + TRACEOPTIONS="--cfg=tracing:1 --cfg=tracing/filename:${TRACE_FILENAME} --cfg=tracing/smpi:1" fi - TRACEOPTIONS="--cfg=tracing:1 --cfg=tracing/filename:${TRACE_FILENAME} --cfg=tracing/smpi:1" if [ -n "${TRACE_COMMENT}" ]; then TRACEOPTIONS="${TRACEOPTIONS} --cfg=tracing/comment:${TRACE_COMMENT}" @@ -370,7 +385,7 @@ fi export SMPI_GLOBAL_SIZE=${NUMPROCS} if [ -n "${KEEP}" ] ; then echo ${EXEC} ${TRACEOPTIONS} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP} - if [ ${HOSTFILETMP} == 1 ] ; then + if [ ${HOSTFILETMP} = 1 ] ; then echo "Generated hostfile ${HOSTFILE} keeped." fi fi @@ -381,7 +396,7 @@ if [ -z "${KEEP}" ] ; then if [ -z "${PLATFORM}" ]; then rm ${PLATFORMTMP} fi - if [ ${HOSTFILETMP} == 1 ] ; then + if [ ${HOSTFILETMP} = 1 ] ; then rm ${HOSTFILE} fi rm ${APPLICATIONTMP}