diff --git a/collect_data.sh b/collect_data.sh index e8b74c9010bb169e54ea957f31b2ffdd87f23147..436fb3affca2cf06d439e104631b9d5dbd68a715 100755 --- a/collect_data.sh +++ b/collect_data.sh @@ -133,6 +133,30 @@ floyd_warshall() { rm "$tmpfile" } +doitgen() { + target=codes/doitgen/doitgen + + # accurate + output="$(dirname ${target})/$(basename ${target})" + compile "${output}.c" "${output}" "codes/doitgen/data.o" + printf "doitgen,,," >> ${LOG} + ./${output} >> ${LOG} + + get_scop "${target}.c" "${target}_perf.c" + get_info "${target}.c.openscop" + + while read x y; do + output="$(dirname ${target})/${x}_${y}_$(basename ${target})" + perforate "${target}.c" "${output}.c" "$x" "$y" + echo compile "${output}.c" "${output}" + compile "${output}.c" "${output}" "codes/doitgen/data.o" + printf "doitgen,%s,%s," "${x}" "${y}" >> ${LOG} + ./${output} >> ${LOG} + done < $tmpfile + + rm "$tmpfile" +} + hotspot() { target=codes/hotspot/hotspot_openmp @@ -162,3 +186,4 @@ jacobi deriche floyd_warshall hotspot +doitgen