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

collect data: printf string

parent 95a783f5
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ correlation() {
perforate "${target}.c" "${output}.c" "$x" "$y"
echo compile "${output}.c" "${output}"
compile "${output}.c" "${output}" "-O3"
printf "correlation,%d,%d," "${x}" "${y}" >> ${LOG}
printf "correlation,%s,%s," "${x}" "${y}" >> ${LOG}
./${output} >> ${LOG}
done < $tmpfile
......@@ -78,7 +78,7 @@ jacobi() {
perforate "${target}.c" "${output}.c" "$x" "$y"
echo compile "${output}.c" "${output}"
compile "${output}.c" "${output}" "codes/jacobi-2d/data.o"
printf "jacobi-2d,%d,%d," "${x}" "${y}" >> ${LOG}
printf "jacobi-2d,%s,%s," "${x}" "${y}" >> ${LOG}
./${output} >> ${LOG}
done < $tmpfile
......@@ -102,7 +102,7 @@ deriche() {
perforate "${target}.c" "${output}.c" "$x" "$y"
echo compile "${output}.c" "${output}"
compile "${output}.c" "${output}" "codes/deriche/data.o"
printf "deriche,%d,%d," "${x}" "${y}" >> ${LOG}
printf "deriche,%s,%s," "${x}" "${y}" >> ${LOG}
./${output} >> ${LOG}
done < $tmpfile
......@@ -126,7 +126,7 @@ floyd_warshall() {
perforate "${target}.c" "${output}.c" "$x" "$y"
echo compile "${output}.c" "${output}"
compile "${output}.c" "${output}" "codes/floyd-warshall/data.o"
printf "floyd_warshall,%d,%d," "${x}" "${y}" >> ${LOG}
printf "floyd_warshall,%s,%s," "${x}" "${y}" >> ${LOG}
./${output} >> ${LOG}
done < $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