summaryrefslogtreecommitdiff
path: root/RED/baselines/cpu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'RED/baselines/cpu/Makefile')
-rw-r--r--RED/baselines/cpu/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/RED/baselines/cpu/Makefile b/RED/baselines/cpu/Makefile
index 4350185..c45fc11 100644
--- a/RED/baselines/cpu/Makefile
+++ b/RED/baselines/cpu/Makefile
@@ -1,7 +1,15 @@
+NUMA ?= 0
+TYPE ?= UINT64
+FLAGS =
+
+ifeq (${NUMA}, 1)
+ FLAGS += -lnuma
+endif
+
all: red
red: app_baseline.cpp
- g++ -O2 app_baseline.cpp -fopenmp -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP -lgomp -lm -o red -D${TYPE}
+ g++ -Wall -Wextra -pedantic -march=native -O2 app_baseline.cpp -fopenmp -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP -DNUMA=${NUMA} -lgomp -lm -o red -D${TYPE} ${FLAGS}
run: red
./red -i 1048576000 -t 4