summaryrefslogtreecommitdiff
path: root/BFS/baselines/cpu/Makefile
blob: 1b1d57c6f0913fb101be7a33ac63e6c8c392f108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: all
all: 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