A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
loba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update TODO.
[loba.git]
/
Experimentations
/
run-all
diff --git
a/Experimentations/run-all
b/Experimentations/run-all
index 350f05f9d712af83d6a344999d4babcaee7954f3..5584528a48d3f5cef2a4d6438e57f3a2977b324a 100755
(executable)
--- a/
Experimentations/run-all
+++ b/
Experimentations/run-all
@@
-49,7
+49,7
@@
parameters="$1"
log "Running: $0 $@"
log "Hostname: $(hostname -f)"
log "Running: $0 $@"
log "Hostname: $(hostname -f)"
-declare -a TOPOLOGIES ALGORITHMS PLATFORMS COMMON_OPTS
+declare -a TOPOLOGIES ALGORITHMS PLATFORMS COMMON_OPTS
MORE_ARGS
# read parameters
log "Reading parameters from \"$1\"."
# read parameters
log "Reading parameters from \"$1\"."
@@
-68,6
+68,7
@@
variable_check DEADLINE
COMMON_OPTS=(
--cfg=contexts/factory:raw
COMMON_OPTS=(
--cfg=contexts/factory:raw
+ "${MORE_ARGS[@]}"
)
log "Results put in: \"$RESULTS\"."
)
log "Results put in: \"$RESULTS\"."
@@
-78,6
+79,12
@@
outfile() {
echo "$*" | sed 's,[^ ]*/,,g;s/\.xml//;y/ /_/'
}
echo "$*" | sed 's,[^ ]*/,,g;s/\.xml//;y/ /_/'
}
+summary() {
+ sed -n '\!^\[main/INFO\] ,----\[ Results \]!,${
+ /send\|recv\|wall clock\|Simulation succeeded/d;p;
+ }' "$1"
+}
+
for plat in "${PLATFORMS[@]}"; do
tmp=$(basename "$plat" ".xml")
plat_output="$RESULTS/plat_$tmp"
for plat in "${PLATFORMS[@]}"; do
tmp=$(basename "$plat" ".xml")
plat_output="$RESULTS/plat_$tmp"
@@
-101,7
+108,7
@@
for plat in "${PLATFORMS[@]}"; do
log "Run: ${cmd[@]}"$'\n'"... &> $out"
if [ $overwrite = 0 -a -e "$out" ]; then
log "already run !"
log "Run: ${cmd[@]}"$'\n'"... &> $out"
if [ $overwrite = 0 -a -e "$out" ]; then
log "already run !"
-
tail -n4
"$out"
+
summary
"$out"
continue
fi
if [ $debug = 1 ]; then
continue
fi
if [ $debug = 1 ]; then
@@
-109,7
+116,7
@@
for plat in "${PLATFORMS[@]}"; do
else
echo "# ${cmd[@]}" > "$out"
"${cmd[@]}" >> "$out" 2>&1
else
echo "# ${cmd[@]}" > "$out"
"${cmd[@]}" >> "$out" 2>&1
-
tail -n4
"$out"
+
summary
"$out"
fi
done
done
fi
done
done