diff options
Diffstat (limited to 'GEMV/baselines/cpu/Makefile')
-rw-r--r-- | GEMV/baselines/cpu/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/GEMV/baselines/cpu/Makefile b/GEMV/baselines/cpu/Makefile index 6f369a7..4f91f97 100644 --- a/GEMV/baselines/cpu/Makefile +++ b/GEMV/baselines/cpu/Makefile @@ -1,8 +1,15 @@ +NUMA ?= 0 +FLAGS = + +ifeq (${NUMA}, 1) + FLAGS += -lnuma +endif + .PHONY: all all: gemv gemv: gemv_openmp.c - gcc -O2 -o gemv -fopenmp gemv_openmp.c + gcc -O2 -Wall -Wextra -pedantic -o gemv -fopenmp -DNUMA=${NUMA} gemv_openmp.c ${FLAGS} gemv_O0: gemv_openmp.c gcc -o gemv_O0 -fopenmp gemv_openmp.c |