summaryrefslogtreecommitdiff
path: root/TS/baselines/cpu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'TS/baselines/cpu/Makefile')
-rw-r--r--TS/baselines/cpu/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/TS/baselines/cpu/Makefile b/TS/baselines/cpu/Makefile
index b0b9a86..223f755 100644
--- a/TS/baselines/cpu/Makefile
+++ b/TS/baselines/cpu/Makefile
@@ -1,7 +1,16 @@
+NUMA ?= 0
+FLAGS =
+
+ifeq (${NUMA}, 1)
+ FLAGS += -lnuma
+endif
+
+DTYPE ?= double
+
all: streamp_openmp
streamp_openmp: streamp_openmp.cpp tools.cpp
- g++ -O2 streamp_openmp.cpp tools.cpp -o streamp_openmp -std=c++11 -fopenmp
+ g++ -ggdb -Wall -Wextra -pedantic -march=native -O2 -DNUMA=${NUMA} -DDTYPE=${DTYPE} streamp_openmp.cpp tools.cpp -o streamp_openmp -std=c++11 -fopenmp ${FLAGS}
streamp_openmp_O0: streamp_openmp.cpp tools.cpp
g++ streamp_openmp.cpp tools.cpp -o streamp_openmp_O0 -std=c++11 -fopenmp
@@ -23,4 +32,10 @@ run_O2: streamp_openmp_O2
clean:
rm -f streamp_openmp streamp_openmp_O0 streamp_openmp_O2
+inputs/randomlistDPU.txt: inputs/randomlist33M.txt
+ head -n 33554432 $^ > $@
+
+inputs/randomlist10M.txt: inputs/randomlist33M.txt
+ head -n 10000000 $^ > $@
+
.PHONY: all run run_O0 run_O2 clean