diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-10 16:26:06 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-10 16:26:06 +0200 |
commit | 7d915e6a7334ab9f351ce5d7b9c0cbafdde616f5 (patch) | |
tree | 7f2b3197a45270a1f2891b04760b21ccd5b51533 /TRNS/baselines/cpu/Makefile | |
parent | 75cb51e1dce2a2825456d8cf30d1e3566c5a40a4 (diff) |
TRNS: Add NUMA and overhead measurement support
Diffstat (limited to 'TRNS/baselines/cpu/Makefile')
-rw-r--r-- | TRNS/baselines/cpu/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/TRNS/baselines/cpu/Makefile b/TRNS/baselines/cpu/Makefile index 781e2be..a5a1635 100644 --- a/TRNS/baselines/cpu/Makefile +++ b/TRNS/baselines/cpu/Makefile @@ -32,8 +32,15 @@ # THE SOFTWARE. # +NUMA ?= 0 +FLAGS = + +ifeq (${NUMA}, 1) + FLAGS += -lnuma +endif + CXX=g++ -CXX_FLAGS=-std=c++11 +CXX_FLAGS=-std=c++11 -Wall -Wextra -pedantic -DNUMA=${NUMA} LIB=-L/usr/lib/ -lm -pthread @@ -44,7 +51,7 @@ EXE=trns all: trns trns: ${SRC} - $(CXX) -O2 $(CXX_FLAGS) $(SRC) $(LIB) -o $(EXE) + $(CXX) -O2 $(CXX_FLAGS) $(SRC) $(LIB) -o $(EXE) $(FLAGS) trns_O0: ${SRC} $(CXX) $(CXX_FLAGS) $(SRC) $(LIB) -o $(EXE)_O0 |