diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-16 08:04:54 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-16 08:04:54 +0100 |
commit | 4072fd2debd280cfa3401e193cf5ecc23a1dd4f3 (patch) | |
tree | a36f3fbe769e15ebe2ca6c1185fd8a6e76a7f24e /BS/baselines/cpu/Makefile | |
parent | 4afee0981b81b09104bba9745d09795b85957f27 (diff) |
BS baseline: Add valgrind-ws support
Diffstat (limited to 'BS/baselines/cpu/Makefile')
-rw-r--r-- | BS/baselines/cpu/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/BS/baselines/cpu/Makefile b/BS/baselines/cpu/Makefile index 735fe84..4c30f65 100644 --- a/BS/baselines/cpu/Makefile +++ b/BS/baselines/cpu/Makefile @@ -1,10 +1,17 @@ +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 @@ -17,7 +24,7 @@ endif all: bs_omp bs_omp: bs_omp.c - gcc -Wall -Wextra -pedantic -O3 ${CFLAGS} -DNUMA=${numa} -DNUMA_MEMCPY=${numa_memcpy} bs_omp.c -o bs_omp -fopenmp ${LDFLAGS} + gcc -Wall -Wextra -pedantic -O3 ${CFLAGS} -DNUMA=${numa} -DNUMA_MEMCPY=${numa_memcpy} -DNOP_SYNC=${nop_sync} -DWITH_BENCHMARK=${benchmark} bs_omp.c -o bs_omp -fopenmp ${LDFLAGS} bs_omp_O0: bs_omp.c gcc bs_omp.c -o bs_omp_O0 -fopenmp |