Skip to content

Commit

Permalink
revert the openblas change
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Jun 2, 2021
1 parent ed293b8 commit bbde15b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions OpenBLAS-fix-dynamic-arch.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
diff --git a/Makefile.x86_64 b/Makefile.x86_64
index f62ab9e..f23a65b 100644
index f2de51e..e1c348a 100644
--- a/Makefile.x86_64
+++ b/Makefile.x86_64
@@ -9,7 +9,7 @@ endif
endif

ifeq ($(CORE), SKYLAKEX)
-ifndef DYNAMIC_ARCH
+ifneq ($(DYNAMIC_ARCH), 1)
ifndef NO_AVX512
CCOMMON_OPT += -march=skylake-avx512
FCOMMON_OPT += -march=skylake-avx512
@@ -28,7 +28,7 @@ endif
endif

ifeq ($(CORE), HASWELL)
-ifndef DYNAMIC_ARCH
+ifneq ($(DYNAMIC_ARCH), 1)
ADD_CPUFLAGS = 1
else
ifdef TARGET_CORE
ifndef NO_AVX2
ifeq ($(C_COMPILER), GCC)
CCOMMON_OPT += -mavx2
2 changes: 1 addition & 1 deletion OpenBLAS.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external OpenBLAS 0.3.15
### RPM external OpenBLAS 0.3.9
## INCLUDE compilation_flags
Source: https://github.com/xianyi/OpenBLAS/archive/v%{realversion}.tar.gz
Patch0: OpenBLAS-fix-dynamic-arch
Expand Down

0 comments on commit bbde15b

Please sign in to comment.