summaryrefslogtreecommitdiff
path: root/COUNT/baselines/cpu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'COUNT/baselines/cpu/Makefile')
-rw-r--r--COUNT/baselines/cpu/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/COUNT/baselines/cpu/Makefile b/COUNT/baselines/cpu/Makefile
new file mode 100644
index 0000000..4608944
--- /dev/null
+++ b/COUNT/baselines/cpu/Makefile
@@ -0,0 +1,22 @@
+NUMA ?= 0
+FLAGS =
+
+ifeq (${NUMA}, 1)
+ FLAGS += -lnuma
+endif
+
+.PHONY: all
+all: count
+
+TYPE ?= uint64_t
+
+count: app_baseline.c
+ gcc -Wall -Wextra -pedantic -march=native -O2 -o count -fopenmp -DT=${TYPE} -DNUMA=${NUMA} app_baseline.c ${FLAGS}
+
+.PHONY: run
+run: count
+ ./count -i 1258291200 -t 4
+
+.PHONY: clean
+clean:
+ rm -f count count_O0 count_O2