summaryrefslogtreecommitdiff
path: root/VA/baselines/cpu/Makefile
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-13 15:32:57 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-13 15:32:57 +0100
commitdce09c3e7bedd426400d64abfb86e21a2c724de4 (patch)
tree5d307f2a6422de4233537c2a3bdce5598bd3a45e /VA/baselines/cpu/Makefile
parenta30ffa52be405db50c660012c92e3e333412ed58 (diff)
VA: Add valgrind-ws benchmark script and baseline adjustments
Diffstat (limited to 'VA/baselines/cpu/Makefile')
-rw-r--r--VA/baselines/cpu/Makefile26
1 files changed, 20 insertions, 6 deletions
diff --git a/VA/baselines/cpu/Makefile b/VA/baselines/cpu/Makefile
index 76a82e1..04aacb6 100644
--- a/VA/baselines/cpu/Makefile
+++ b/VA/baselines/cpu/Makefile
@@ -1,9 +1,23 @@
-NUMA ?= 0
-NUMA_MEMCPY ?= 0
-FLAGS =
+benchmark ?= 1
+debug ?= 0
+native ?= 1
+nop_sync ?= 0
+numa ?= 0
+numa_memcpy ?= 0
+
+CFLAGS =
+LDFLAGS =
+
+ifeq (${debug}, 1)
+ CFLAGS += -g
+endif
+
+ifeq (${native}, 1)
+ CFLAGS += -march=native
+endif
-ifeq (${NUMA}, 1)
- FLAGS += -lnuma
+ifeq (${numa}, 1)
+ LDFLAGS += -lnuma
endif
.PHONY: all
@@ -12,7 +26,7 @@ all: va
TYPE ?= int32_t
va: app_baseline.c
- gcc -Wall -Wextra -pedantic -march=native -O2 -o va -fopenmp -DNUMA=${NUMA} -DNUMA_MEMCPY=${NUMA_MEMCPY} -DT=${TYPE} app_baseline.c ${FLAGS}
+ gcc -Wall -Wextra -pedantic ${CFLAGS} -O3 -o va -fopenmp -DNUMA=${numa} -DNUMA_MEMCPY=${numa_memcpy} -DNOP_SYNC=${nop_sync} -DWITH_BENCHMARK=${benchmark} -DT=${TYPE} app_baseline.c ${LDFLAGS}
va_O0: app_baseline.c
gcc -o va_O0 -fopenmp app_baseline.c