summaryrefslogtreecommitdiff
path: root/HST-S/baselines/cpu/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-06-02 15:27:22 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-06-02 15:27:22 +0200
commit7e0597a2ddb2d07ff7b72a6fa47245774e04f964 (patch)
tree51dbd792f11428c5f61283fb5de3fc7d4f9606f7 /HST-S/baselines/cpu/Makefile
parentf438d54780af4ae90638f5d57acdd5e98d6596e9 (diff)
port HST-S to dfatool
Diffstat (limited to 'HST-S/baselines/cpu/Makefile')
-rw-r--r--HST-S/baselines/cpu/Makefile24
1 files changed, 21 insertions, 3 deletions
diff --git a/HST-S/baselines/cpu/Makefile b/HST-S/baselines/cpu/Makefile
index 708ae72..4405afc 100644
--- a/HST-S/baselines/cpu/Makefile
+++ b/HST-S/baselines/cpu/Makefile
@@ -1,6 +1,24 @@
-all:
- gcc -o hist -fopenmp app_baseline.c
+all: hist
+
+hist: app_baseline.c
+ gcc -O2 -o hist -fopenmp app_baseline.c
+
+hist_O0: app_baseline.c
+ gcc -o hist_O0 -fopenmp app_baseline.c
+
+hist_O2: app_baseline.c
+ gcc -O2 -o hist_O2 -fopenmp app_baseline.c
+
+run: hist
+ ./hist -i 1006632960 -t 4
+
+run_O0: hist_O0
+ ./hist_O0 -i 1006632960 -t 4
+
+run_O2: hist_O2
+ ./hist_O2 -i 1006632960 -t 4
clean:
- rm hist
+ rm -f hist hist_O0 hist_O2
+.PHONY: all run run_O0 run_O2 clean