summaryrefslogtreecommitdiff
path: root/SEL/baselines/cpu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'SEL/baselines/cpu/Makefile')
-rw-r--r--SEL/baselines/cpu/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/SEL/baselines/cpu/Makefile b/SEL/baselines/cpu/Makefile
index 81f6d17..344531b 100644
--- a/SEL/baselines/cpu/Makefile
+++ b/SEL/baselines/cpu/Makefile
@@ -1,10 +1,17 @@
+NUMA ?= 0
+FLAGS =
+
+ifeq (${NUMA}, 1)
+ FLAGS += -lnuma
+endif
+
.PHONY: all
all: sel
TYPE ?= uint64_t
sel: app_baseline.c
- gcc -O2 -o sel -fopenmp -DT=${TYPE} app_baseline.c
+ gcc -O2 -o sel -fopenmp -DT=${TYPE} -DNUMA=${NUMA} app_baseline.c ${FLAGS}
sel_O0: app_baseline.c
gcc -o sel_O0 -fopenmp app_baseline.c