diff --git a/Makefile b/Makefile index 5f6f6e2d..560160b2 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ GPU=0 CUDNN=0 OPENCV=0 OPENMP=0 +NATIVECPU=0 DEBUG=0 ARCH= -gencode arch=compute_30,code=sm_30 \ @@ -32,6 +33,10 @@ ifeq ($(OPENMP), 1) CFLAGS+= -fopenmp endif +ifeq ($(NATIVECPU), 1) +CFLAGS+= -march=native +endif + ifeq ($(DEBUG), 1) OPTS=-O0 -g endif