From: schnorr Date: Thu, 13 Sep 2012 22:18:17 +0000 (+0200) Subject: [trace] reflect new tracing options in smpirun script X-Git-Tag: v3_8~146^2~62 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2367c53c4f94508696a2bd8b6ffcb46acc0e2167 [trace] reflect new tracing options in smpirun script --- diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index b4ded8a409..569dc888ea 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -27,6 +27,8 @@ function usage () { echo " [-np ] # use that amount of processes from the hostfile." echo " # By default, all processes of the hostfile are used." echo " [-trace] # activate tracing" + echo " [-trace-comment ]# put a comment on the top of the trace file" + echo " [-trace-comment-file ] # put file contents on the top of the trace file as comment" echo " [-trace-grouped] # group MPI processes by location" echo " [-trace-resource] # trace resource utilization" echo " [-trace-triva] # generate configuration for Triva's GraphView" @@ -83,6 +85,15 @@ while true; do TRACE_ACTIVE="true" shift 1 ;; + + "-trace-comment") + TRACE_COMMENT="$2" + shift 2 + ;; + + "-trace-comment-file") + TRACE_COMMENT_FILE="$2" + shift 2 ;; "-trace-file") @@ -286,6 +297,14 @@ if [ -n "${TRACE_ACTIVE}" ]; then 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}" + fi + + if [ -n "${TRACE_COMMENT_FILE}" ]; then + TRACEOPTIONS="${TRACEOPTIONS} --cfg=tracing/comment_file:${TRACE_COMMENT_FILE}" + fi + if [ -n "${TRACE_GROUPED}" ]; then TRACEOPTIONS="${TRACEOPTIONS} --cfg=tracing/smpi/group:1" fi