blob: 6f082b17ed1e4f723ebe53d5681e40842cfc83fa (
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
28
29
|
.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
# each bfs invocation performs 100 iterations
.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
|