From 9be82d39101398116c0974fd26a63956631df57b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 May 2023 15:27:21 +0200 Subject: port BS CPU to dfatool --- BS/baselines/cpu/Makefile | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'BS/baselines/cpu/Makefile') 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 -- cgit v1.2.3