diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-31 16:14:31 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-31 16:14:31 +0200 |
commit | 0540fa9e26e2c8e7e11fcf3e5444e4981f811e1c (patch) | |
tree | a450f403c535ded297b8ffc4a0ea5675e780a3de /TRNS/baselines/cpu/Makefile | |
parent | 0f710b4f47dfc51e3f01473995dbb6ed5844eff1 (diff) |
port TRNS to dfatool
Diffstat (limited to 'TRNS/baselines/cpu/Makefile')
-rw-r--r-- | TRNS/baselines/cpu/Makefile | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/TRNS/baselines/cpu/Makefile b/TRNS/baselines/cpu/Makefile index cb2e264..781e2be 100644 --- a/TRNS/baselines/cpu/Makefile +++ b/TRNS/baselines/cpu/Makefile @@ -41,9 +41,29 @@ DEP=kernel.cpp kernel.h main.cpp support/common.h support/setup.h support/timer. SRC=main.cpp kernel.cpp EXE=trns -all: - $(CXX) $(CXX_FLAGS) $(SRC) $(LIB) -o $(EXE) +all: trns + +trns: ${SRC} + $(CXX) -O2 $(CXX_FLAGS) $(SRC) $(LIB) -o $(EXE) + +trns_O0: ${SRC} + $(CXX) $(CXX_FLAGS) $(SRC) $(LIB) -o $(EXE)_O0 + +trns_O2: ${SRC} + $(CXX) -O2 $(CXX_FLAGS) $(SRC) $(LIB) -o $(EXE)_O2 + +run: trns + ./trns -w 0 -r 1 -m 16 -n 8 -o 4096 -p 2556 + +# upstream uses -r 1 + +run_O0: trns_O0 + ./trns_O0 -w 0 -r 50 -m 16 -n 8 -o 4096 -p 2556 + +run_O2: trns_O2 + ./trns_O2 -w 0 -r 50 -m 16 -n 8 -o 4096 -p 2556 clean: - rm -f $(EXE) + rm -f $(EXE) ${EXE}_O0 ${EXE}_O2 +.PHONY: all run run_O0 run_O2 clean |