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

collect data for fdtd-2d

parent 6f766173
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,31 @@ seidel_2d() {
rm "$tmpfile"
}
fdtd_2d() {
target=codes/fdtd-2d/fdtd-2d
# accurate
output="$(dirname ${target})/$(basename ${target})"
compile "${output}.c" "${output}" "codes/fdtd-2d/data.o"
printf "fdtd-2d,,," >> ${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/fdtd-2d/data.o"
printf "fdtd-2d,%s,%s," "${x}" "${y}" >> ${LOG}
./${output} >> ${LOG}
done < $tmpfile
rm "$tmpfile"
}
hotspot() {
target=codes/hotspot/hotspot_openmp
......@@ -211,3 +236,4 @@ floyd_warshall
hotspot
doitgen
seidel_2d
fdtd_2d
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