Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. include common/make.config
  2. RODINIA_BASE_DIR := $(shell pwd)
  3. OPENCL_BIN_DIR := $(RODINIA_BASE_DIR)/bin/linux/opencl
  4. OCL_DIRS := backprop bfs cfd dwt2d gaussian heartwall hybridsort hotspot kmeans lavaMD leukocyte lud nn nw srad streamcluster particlefilter pathfinder
  5. all: OPENCL
  6. OPENCL:
  7. cd opencl/backprop; make; cp backprop $(OPENCL_BIN_DIR)
  8. cd opencl/bfs; make; cp bfs $(OPENCL_BIN_DIR)
  9. cd opencl/cfd; make; cp euler3d $(OPENCL_BIN_DIR)
  10. cd opencl/hotspot; make; cp hotspot $(OPENCL_BIN_DIR)
  11. cd opencl/kmeans; make; cp kmeans $(OPENCL_BIN_DIR)
  12. cd opencl/lavaMD; make; cp lavaMD $(OPENCL_BIN_DIR)
  13. cd opencl/leukocyte; make; cp OpenCL/leukocyte $(OPENCL_BIN_DIR)
  14. cd opencl/lud/ocl; make; cp lud $(OPENCL_BIN_DIR)
  15. cd opencl/nw; make; cp nw $(OPENCL_BIN_DIR)
  16. cd opencl/srad; make; cp srad $(OPENCL_BIN_DIR)
  17. cd opencl/streamcluster; make; cp streamcluster $(OPENCL_BIN_DIR)
  18. cd opencl/pathfinder; make; cp pathfinder $(OPENCL_BIN_DIR)
  19. cd opencl/particlefilter; make; cp OCL_particlefilter_naive OCL_particlefilter_single OCL_particlefilter_double $(OPENCL_BIN_DIR)
  20. cd opencl/gaussian; make; cp gaussian $(OPENCL_BIN_DIR)
  21. cd opencl/nn; make; cp nn $(OPENCL_BIN_DIR)
  22. cd opencl/heartwall; make; cp heartwall $(OPENCL_BIN_DIR)
  23. cd opencl/hybridsort; make; cp hybridsort $(OPENCL_BIN_DIR)
  24. cd opencl/dwt2d; make; cp dwt2d $(OPENCL_BIN_DIR)
  25. OPENCL_BENCHMARK_CPU:
  26. ./time-and-save.sh opencl/backprop times.dat cpu
  27. ./time-and-save.sh opencl/bfs times.dat cpu
  28. ./time-and-save.sh opencl/cfd times.dat cpu
  29. ./time-and-save.sh opencl/hotspot times.dat cpu
  30. ./time-and-save.sh opencl/kmeans times.dat cpu
  31. ./time-and-save.sh opencl/lavaMD times.dat cpu
  32. ./time-and-save.sh opencl/leukocyte/OpenCL times.dat cpu
  33. ./time-and-save.sh opencl/lud/ocl times.dat cpu
  34. ./time-and-save.sh opencl/nw times.dat cpu
  35. ./time-and-save.sh opencl/srad times.dat cpu
  36. ./time-and-save.sh opencl/streamcluster times.dat cpu
  37. ./time-and-save.sh opencl/pathfinder times.dat cpu
  38. ./time-and-save.sh opencl/particlefilter times.dat cpu
  39. ./time-and-save.sh opencl/gaussian times.dat cpu
  40. ./time-and-save.sh opencl/nn times.dat cpu
  41. ./time-and-save.sh opencl/heartwall times.dat cpu
  42. ./time-and-save.sh opencl/hybridsort times.dat cpu
  43. ./time-and-save.sh opencl/dwt2d times.dat cpu
  44. clean: OCL_clean OPENCL_BENCHMARK_clean
  45. OCL_clean:
  46. cd $(OPENCL_BIN_DIR); rm -f *
  47. for dir in $(OCL_DIRS) ; do cd opencl/$$dir ; make clean ; cd ../.. ; done
  48. OPENCL_BENCHMARK_clean:
  49. rm -r power-usage.csv results