Przeglądaj źródła

Modified the Makefile adding a benchmark target

Now the Makefile as an OPENCL_BENCHMARK_GPU targets that takes care of
executing the benchmarks
Andrea Gussoni 8 lat temu
rodzic
commit
6773ff9938
1 zmienionych plików z 24 dodań i 1 usunięć
  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_GPU:
+	./time-and-save.sh opencl/backprop times.dat gpu
+	./time-and-save.sh opencl/bfs times.dat gpu
+	./time-and-save.sh opencl/cfd times.dat gpu
+	./time-and-save.sh opencl/hotspot times.dat gpu
+	./time-and-save.sh opencl/kmeans times.dat gpu
+	./time-and-save.sh opencl/lavaMD times.dat gpu
+	./time-and-save.sh opencl/leukocyte/OpenCL times.dat gpu
+	./time-and-save.sh opencl/lud/ocl times.dat gpu
+	./time-and-save.sh opencl/nw times.dat gpu
+	./time-and-save.sh opencl/srad times.dat gpu
+	./time-and-save.sh opencl/streamcluster times.dat gpu
+	./time-and-save.sh opencl/pathfinder times.dat gpu
+	./time-and-save.sh opencl/particlefilter times.dat gpu
+	./time-and-save.sh opencl/gaussian times.dat gpu
+	./time-and-save.sh opencl/nn times.dat gpu
+	./time-and-save.sh opencl/heartwall times.dat gpu
+	./time-and-save.sh opencl/hybridsort times.dat gpu
+	./time-and-save.sh opencl/dwt2d times.dat gpu
+
+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