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

collect_data.sh: reconstruction

parent b6215090
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ pluto() {
}
compile() {
gcc -s -O3 -I../polybench-c-4.2.1-beta/utilities -I. -DPOLYBENCH_TIME -o "$2" ../polybench-c-4.2.1-beta/utilities/polybench.c "$1" -lm "$3" -fopenmp
gcc -s -O3 -I../polybench-c-4.2.1-beta/utilities -I. -DPOLYBENCH_TIME -o "$2" ../polybench-c-4.2.1-beta/utilities/polybench.c "$1" -lm "$3" -fopenmp $4
}
barvinok() {
......@@ -94,11 +94,15 @@ permutenew() {
# end
generate "${perfin}" "${output}.c"
barvinok=$(barvinok "${output}.c")
#
echo "#define __RECONSTRUCTION__ 0" > "${output}_barvinok.c"
cat "${output}.c" >> "${output}_barvinok.c"
echo compile "${output}.c" "${output}"
compile "${output}.c" "${output}" "codes/${code}/data.o"
barvinok=$(barvinok "${output}_barvinok.c")
###### without reconstruction
echo compile "${output}.c" "${output}"
compile "${output}.c" "${output}" "codes/${code}/data.o" "-D__RECONSTRUCTION__=0"
out="$(./${output}|paste - -)"
time=$(echo "$out"|sed "s/error: .*//;s/[ \t]//g")
......@@ -107,6 +111,18 @@ permutenew() {
cfg=$(echo "$cfg"|sed "s/^_//")
log "$code" "perf" "$barvinok" "$cfg" "$time" "$error"
######
###### with reconstruction
echo compile "${output}.c" "${output}"
compile "${output}.c" "${output}" "codes/${code}/data.o" "-D__RECONSTRUCTION__=1"
out="$(./${output}|paste - -)"
time=$(echo "$out"|sed "s/error: .*//;s/[ \t]//g")
error=$(echo "$out"|sed "s/.*error: //;s/[ \t]//g")
cfg=$(echo "$cfg"|sed "s/^_//")
log "$code" "perf_reconstruct" "$barvinok" "$cfg" "$time" "$error"
# pluto
......
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