diff options
Diffstat (limited to 'BFS/baselines/cpu/Makefile')
-rw-r--r-- | BFS/baselines/cpu/Makefile | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/BFS/baselines/cpu/Makefile b/BFS/baselines/cpu/Makefile index 895d38b..1b1d57c 100644 --- a/BFS/baselines/cpu/Makefile +++ b/BFS/baselines/cpu/Makefile @@ -1,7 +1,27 @@ -all: - gcc -o bfs -fopenmp app.c +.PHONY: all +all: bfs -clean: - rm bfs +bfs: app.c + gcc -O2 -o bfs -fopenmp app.c + +bfs_O0: app.c + gcc -o bfs_O0 -fopenmp app.c + +bfs_O2: app.c + gcc -O2 -o bfs_O2 -fopenmp app.c +.PHONY: run +run: bfs + ./bfs -f ../../data/loc-gowalla_edges.txt +.PHONY: run_O0 +run_O0: bfs_O0 + OMP_NUM_THREADS=4 ./bfs_O0 -f ../../data/loc-gowalla_edges.txt + +.PHONY: run_O2 +run_O2: bfs_O2 + OMP_NUM_THREADS=4 ./bfs_O2 -f ../../data/loc-gowalla_edges.txt + +.PHONY: clean +clean: + rm -f bfs bfs_O0 bfs_O2 |