From 1aad3d349b0bdd2e7eae586ec6a7400e8ba9225e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 May 2023 10:24:36 +0200 Subject: port BFS CPU baseline to dfatool --- BFS/baselines/cpu/Makefile | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'BFS/baselines/cpu/Makefile') 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 -- cgit v1.2.3