blob: 8faf3c4d391296f10df2ddbdee0938661e159345 (
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: bs_omp
bs_omp: bs_omp.c
	gcc -O2 bs_omp.c -o bs_omp -fopenmp
bs_omp_O0: bs_omp.c
	gcc bs_omp.c -o bs_omp_O0 -fopenmp
bs_omp_O2: bs_omp.c
	gcc -O2 bs_omp.c -o bs_omp_O2 -fopenmp
# bs_omp performs a single iteration and must be run in a loop for proper benchmarks
.PHONY: run run_O0 run_O2
run: bs_omp
	./bs_omp 262144 16777216
run_O0: bs_omp_O0
	./bs_omp_O0 262144 16777216
run_O2: bs_omp_O2
	./bs_omp_O2 262144 16777216
.PHONY: clean
clean:
	rm -f bs_omp bs_omp_O0 bs_omp_O2
 |