A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
always have display_timing activated for smpi, as it is quite useful
[simgrid.git]
/
src
/
smpi
/
smpirun.in
diff --git
a/src/smpi/smpirun.in
b/src/smpi/smpirun.in
index
cb94bd6
..
861ed11
100755
(executable)
--- a/
src/smpi/smpirun.in
+++ b/
src/smpi/smpirun.in
@@
-15,7
+15,7
@@
NETWORK_BANDWIDTH="${DEFAULT_NETWORK_BANDWIDTH}"
NETWORK_LATENCY="${DEFAULT_NETWORK_LATENCY}"
POWER="${DEFAULT_POWER}"
NETWORK_LATENCY="${DEFAULT_NETWORK_LATENCY}"
POWER="${DEFAULT_POWER}"
-SIMOPTS="--cfg=maxmin/precision:1e-9 --cfg=network/model:SMPI --cfg=network/TCP_gamma:4194304"
+SIMOPTS="--cfg=maxmin/precision:1e-9 --cfg=network/model:SMPI --cfg=network/TCP_gamma:4194304
--cfg=smpi/display_timing:1
"
#usage to print the way this script should be called
function usage () {
#usage to print the way this script should be called
function usage () {
@@
-236,9
+236,12
@@
fi
if [ "${EXTOPT}" = "smpi_replay" ]; then
APP_TRACES=$1;
if [ "${EXTOPT}" = "smpi_replay" ]; then
APP_TRACES=$1;
- if [ -n "${APP_TRACES}" ] && [ -f
${APP_TRACES}
]; then
+ if [ -n "${APP_TRACES}" ] && [ -f
"${APP_TRACES}"
]; then
hosttraces=(`cat ${APP_TRACES} | tr \\\n " "`)
NUMTRACES=`cat ${APP_TRACES} | wc -l`
hosttraces=(`cat ${APP_TRACES} | tr \\\n " "`)
NUMTRACES=`cat ${APP_TRACES} | wc -l`
+ else
+ printf "File not found: %s\n", "${APP_TRACES:-\${APP_TRACES}}" >&2
+ exit 1
fi
fi
fi
fi