summaryrefslogtreecommitdiff
path: root/TS/baselines/cpu/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-26 15:44:12 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-26 15:44:12 +0200
commit4bbc83c0ec43b0ede8e4e0fb7f81494ccd65acf8 (patch)
treed3ad5266f1585087269a3bbef1d1e3c6ee3258fb /TS/baselines/cpu/Makefile
parent158bed0f093357150e80861eb731e6bc8fa77bdf (diff)
port TS CPU to dfatool
Diffstat (limited to 'TS/baselines/cpu/Makefile')
-rw-r--r--TS/baselines/cpu/Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/TS/baselines/cpu/Makefile b/TS/baselines/cpu/Makefile
index 80729b0..69121ed 100644
--- a/TS/baselines/cpu/Makefile
+++ b/TS/baselines/cpu/Makefile
@@ -1,4 +1,22 @@
-all:
- g++ streamp_openmp.cpp tools.cpp -o streamp_openmp -std=c++11 -fopenmp
-run:
- ./streamp_openmp SampleInput/randomlist5M.txt 256
+
+all: streamp_openmp
+
+streamp_openmp: streamp_openmp.cpp tools.cpp
+ g++ -O2 streamp_openmp.cpp tools.cpp -o streamp_openmp -std=c++11 -fopenmp
+
+streamp_openmp_O0: streamp_openmp.cpp tools.cpp
+ g++ streamp_openmp.cpp tools.cpp -o streamp_openmp_O0 -std=c++11 -fopenmp
+
+streamp_openmp_O2: streamp_openmp.cpp tools.cpp
+ g++ -O2 streamp_openmp.cpp tools.cpp -o streamp_openmp_O2 -std=c++11 -fopenmp
+
+run: streamp_openmp
+ ./streamp_openmp inputs/randomlist33M.txt 256
+
+run_O0: streamp_openmp_O0
+ ./streamp_openmp_O0 inputs/randomlist33M.txt 256
+
+run_O2: streamp_openmp_O2
+ ./streamp_openmp_O2 inputs/randomlist33M.txt 256
+
+.PHONY: all run run_O0 run_O2 clean