Browse Source

Modified the Makefile adding a benchmark target

Now the Makefile as an OPENCL_BENCHMARK_CPU targets that takes care of
executing the benchmarks
Andrea Gussoni 8 years ago
parent
commit
bdb0ecf3a6
1 changed files with 24 additions and 1 deletions
  1. 24 1
      Makefile

+ 24 - 1
Makefile

@@ -28,8 +28,31 @@ OPENCL:
 	cd opencl/hybridsort;       make;   cp hybridsort $(OPENCL_BIN_DIR)
 	cd opencl/dwt2d;            make;   cp dwt2d  $(OPENCL_BIN_DIR)
 
-clean: OCL_clean
+OPENCL_BENCHMARK_CPU:
+	./time-and-save.sh opencl/backprop times.dat cpu
+	./time-and-save.sh opencl/bfs times.dat cpu
+	./time-and-save.sh opencl/cfd times.dat cpu
+	./time-and-save.sh opencl/hotspot times.dat cpu
+	./time-and-save.sh opencl/kmeans times.dat cpu
+	./time-and-save.sh opencl/lavaMD times.dat cpu
+	./time-and-save.sh opencl/leukocyte/OpenCL times.dat cpu
+	./time-and-save.sh opencl/lud/ocl times.dat cpu
+	./time-and-save.sh opencl/nw times.dat cpu
+	./time-and-save.sh opencl/srad times.dat cpu
+	./time-and-save.sh opencl/streamcluster times.dat cpu
+	./time-and-save.sh opencl/pathfinder times.dat cpu
+	./time-and-save.sh opencl/particlefilter times.dat cpu
+	./time-and-save.sh opencl/gaussian times.dat cpu
+	./time-and-save.sh opencl/nn times.dat cpu
+	./time-and-save.sh opencl/heartwall times.dat cpu
+	./time-and-save.sh opencl/hybridsort times.dat cpu
+	./time-and-save.sh opencl/dwt2d times.dat cpu
+
+clean: OCL_clean OPENCL_BENCHMARK_clean
 
 OCL_clean:
 	cd $(OPENCL_BIN_DIR); rm -f *
 	for dir in $(OCL_DIRS) ; do cd opencl/$$dir ; make clean ; cd ../.. ; done
+
+OPENCL_BENCHMARK_clean:
+	rm -r power-usage.csv results