diff options
Diffstat (limited to 'BS/baselines/cpu/Makefile')
-rw-r--r-- | BS/baselines/cpu/Makefile | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/BS/baselines/cpu/Makefile b/BS/baselines/cpu/Makefile index e907fc8..1b0ceb5 100644 --- a/BS/baselines/cpu/Makefile +++ b/BS/baselines/cpu/Makefile @@ -1,4 +1,25 @@ -all: - gcc bs_omp.c -o bs_omp -fopenmp -run: +.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 + +.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 |