summaryrefslogtreecommitdiff
path: root/UNI/baselines/cpu/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-25 08:44:21 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-25 08:44:21 +0200
commit19d1222c6d179f90c846b8fcbbb2bbfdc05a4587 (patch)
tree01968c7ffecae31f63e4d901633cf0614cd55269 /UNI/baselines/cpu/Makefile
parent437739abce608132f2bc96ff18796937a3a40c9f (diff)
port UNI to dfatool
Diffstat (limited to 'UNI/baselines/cpu/Makefile')
-rw-r--r--UNI/baselines/cpu/Makefile31
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