From b70d21490b9572170da402bc19d15236b9605b3d Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Thu, 2 Aug 2018 18:08:23 -0700 Subject: [PATCH] add OPENBLAS_NO_AVX512 build option (#28414) --- deps/blas.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deps/blas.mk b/deps/blas.mk index 6035954cb4faa..26e985be75869 100644 --- a/deps/blas.mk +++ b/deps/blas.mk @@ -73,9 +73,11 @@ endif # Allow disabling AVX for older binutils ifeq ($(OPENBLAS_NO_AVX), 1) -OPENBLAS_BUILD_OPTS += NO_AVX=1 NO_AVX2=1 +OPENBLAS_BUILD_OPTS += NO_AVX=1 NO_AVX2=1 NO_AVX512=1 else ifeq ($(OPENBLAS_NO_AVX2), 1) -OPENBLAS_BUILD_OPTS += NO_AVX2=1 +OPENBLAS_BUILD_OPTS += NO_AVX2=1 NO_AVX512=1 +else ifeq ($(OPENBLAS_NO_AVX512), 1) +OPENBLAS_BUILD_OPTS += NO_AVX512=1 endif # Do not overwrite the "-j" flag