diff options
Diffstat (limited to 'UNI/baselines/cpu/Makefile')
-rw-r--r-- | UNI/baselines/cpu/Makefile | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/UNI/baselines/cpu/Makefile b/UNI/baselines/cpu/Makefile index a1b4766..10e4f9b 100644 --- a/UNI/baselines/cpu/Makefile +++ b/UNI/baselines/cpu/Makefile @@ -1,6 +1,29 @@ -all: - gcc -o uni -fopenmp app_baseline.c +.PHONY: all +all: uni -clean: - rm uni +TYPE ?= int64_t + +uni: app_baseline.c + gcc -O2 -o uni -fopenmp -DT=${TYPE} app_baseline.c + +uni_O0: app_baseline.c + gcc -o uni_O0 -fopenmp app_baseline.c + +uni_O2: app_baseline.c + gcc -O2 -o uni_O2 -fopenmp app_baseline.c +.PHONY: run +run: uni + ./uni -i 1258291200 -t 4 + +.PHONY: run_O0 +run_O0: uni_O0 + ./uni_O0 -i 1258291200 -t 4 + +.PHONY: run_O2 +run_O2: uni_O2 + ./uni_O2 -i 1258291200 -t 4 + +.PHONY: clean +clean: + rm -f uni uni_O0 uni_O2 |