-trace-resource # trace resource utilization
-trace-triva # generate configuration for Triva's GraphView
-trace-file <tracefile> # name of the tracefile (simgrid_smpi.trace)
+ -ext <value> # additional parameter (reserved)
or (deprecated usage):
$0 [-keep-temps] [-np <numprocs>] [-bandwidth <bytes/sec>] [-latency <secs>] program [program-options]
exit
fi
+EXTOPT=""
+
while true; do
case "$1" in
"-np" | "-n")
shift 2
;;
+ "-ext")
+ EXTOPT="$2"
+ shift 2
+ ;;
+
"-map")
MAPOPT="true"
shift 1
NUMHOSTS=`cat ${HOSTFILE} | wc -l`
fi
-if [ "${EXEC}" = "./smpi_replay" ]; then
+if [ "${EXTOPT}" = "smpi_replay" ]; then
APP_TRACES=$1;
if [ -n "${APP_TRACES}" ] && [ -f ${APP_TRACES} ]; then
hosttraces=(`cat ${APP_TRACES} | tr \\\n " "`)
fi
echo " <process host=\"${host}\" function=\"$i\"> <!-- function name used only for logging -->" >> ${APPLICATIONTMP}
echo " <argument value=\"$i\"/> <!-- rank -->" >> ${APPLICATIONTMP}
- if [ "${EXEC}" = "./smpi_replay" ]; then
+ if [ "${EXTOPT}" = "smpi_replay" ]; then
if [ ${NUMTRACES} -gt 1 ]; then
echo " <argument value=\"${hosttraces[$j]}\"/>" >> ${APPLICATIONTMP}
else