Skip to content
Snippets Groups Projects
Commit 50a4ddcd authored by Daniel Maier's avatar Daniel Maier
Browse files

collect data script

parent d0026401
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
PERF=./perforate.sh
INFO=./build/info
tmpfile=$(mktemp)
get_scop() {
$PERF -e "$1"
}
get_info() {
$INFO "$1" > $tmpfile
}
perforate() {
$PERF -a -o "$3_$4_$2" -s "$3" -l "$4" "$1"
}
#get_scop "codes/heat-3d/heat-3d.c" "codes/heat-3d/heat-3d_perf.c"
#get_info "codes/heat-3d/heat-3d.c.openscop"
#
#while read x y; do
# perforate "codes/heat-3d/heat-3d.c" "heat-3d_perf.c" "$x" "$y"
#done < $tmpfile
file=
target=codes/correlation/correlation
get_scop "${target}.c" "${target}_perf.c"
get_info "${target}.openscop"
while read x y; do
perforate "${target}.c" "${target}_perf.c" "$x" "$y"
done < $tmpfile
rm "$tmpfile"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment