diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-25 10:24:36 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-25 10:24:36 +0200 |
commit | 1aad3d349b0bdd2e7eae586ec6a7400e8ba9225e (patch) | |
tree | f82dafa7674896f5773e976a9056f79c416dc69e /BFS/baselines/cpu/Makefile | |
parent | b3235ccc79c0783e95c1c5524b8b421d2d048cf7 (diff) |
port BFS CPU baseline to dfatool
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 |