Skip to content

Commit b8ad4f1

Browse files
authored
Upgrade OpenBLAS to v0.3.17 (#41973)
* Upgrade OpenBLAS to v0.3.17 This allows us to drop several patches. * Precision adjustments in doctests
1 parent e7995e4 commit b8ad4f1

14 files changed

+152
-710
lines changed

deps/Versions.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ BLASTRAMPOLINE_VER := 3.0.4
7979
BLASTRAMPOLINE_JLL_NAME := libblastrampoline
8080

8181
# OpenBLAS
82-
OPENBLAS_VER := 0.3.13
82+
OPENBLAS_VER := 0.3.17
8383
OPENBLAS_JLL_NAME := OpenBLAS
8484

8585
# OpenLibm

deps/checksums/openblas

Lines changed: 94 additions & 92 deletions
Large diffs are not rendered by default.

deps/openblas.mk

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -103,27 +103,12 @@ $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-ofast-power.patch-applied: $(BUILDDIR)/
103103
patch -p1 -f < $(SRCDIR)/patches/openblas-ofast-power.patch
104104
echo 1 > $@
105105

106-
$(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-exshift.patch-applied: $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-ofast-power.patch-applied
106+
$(BUILDDIR)/$(OPENBLAS_SRC_DIR)/neoverse-generic-kernels.patch-applied: $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-ofast-power.patch-applied
107107
cd $(BUILDDIR)/$(OPENBLAS_SRC_DIR) && \
108108
patch -p1 -f < $(SRCDIR)/patches/openblas-exshift.patch
109109
echo 1 > $@
110110

111-
$(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-filter-out-mavx-flag-on-zgemm-kernels.patch-applied: $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-exshift.patch-applied
112-
cd $(BUILDDIR)/$(OPENBLAS_SRC_DIR) && \
113-
patch -p1 -f < $(SRCDIR)/patches/openblas-filter-out-mavx-flag-on-zgemm-kernels.patch
114-
echo 1 > $@
115-
116-
$(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-Only-filter-out-mavx-on-Sandybridge.patch-applied: $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-filter-out-mavx-flag-on-zgemm-kernels.patch-applied
117-
cd $(BUILDDIR)/$(OPENBLAS_SRC_DIR) && \
118-
patch -p1 -f < $(SRCDIR)/patches/openblas-Only-filter-out-mavx-on-Sandybridge.patch
119-
echo 1 > $@
120-
121-
$(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-armv8-volatile-detecion.patch-applied: $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-Only-filter-out-mavx-on-Sandybridge.patch-applied
122-
cd $(BUILDDIR)/$(OPENBLAS_SRC_DIR) && \
123-
patch -p1 -f < $(SRCDIR)/patches/openblas-armv8-volatile-detecion.patch
124-
echo 1 > $@
125-
126-
$(BUILDDIR)/$(OPENBLAS_SRC_DIR)/build-configured: $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/openblas-armv8-volatile-detecion.patch-applied
111+
$(BUILDDIR)/$(OPENBLAS_SRC_DIR)/build-configured: $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/neoverse-generic-kernels.patch-applied
127112
echo 1 > $@
128113

129114
$(BUILDDIR)/$(OPENBLAS_SRC_DIR)/build-compiled: $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/build-configured

deps/openblas.version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
OPENBLAS_BRANCH=v0.3.13
2-
OPENBLAS_SHA1=d2b11c47774b9216660e76e2fc67e87079f26fa1
1+
OPENBLAS_BRANCH=v0.3.17
2+
OPENBLAS_SHA1=d909f9f3d4fc4ccff36d69f178558df154ba1002
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/kernel/arm64/KERNEL.NEOVERSEN1 b/kernel/arm64/KERNEL.NEOVERSEN1
2+
index ea010db4..074d7215 100644
3+
--- a/kernel/arm64/KERNEL.NEOVERSEN1
4+
+++ b/kernel/arm64/KERNEL.NEOVERSEN1
5+
@@ -91,10 +91,10 @@ IDAMAXKERNEL = iamax_thunderx2t99.c
6+
ICAMAXKERNEL = izamax_thunderx2t99.c
7+
IZAMAXKERNEL = izamax_thunderx2t99.c
8+
9+
-SNRM2KERNEL = scnrm2_thunderx2t99.c
10+
-DNRM2KERNEL = dznrm2_thunderx2t99.c
11+
-CNRM2KERNEL = scnrm2_thunderx2t99.c
12+
-ZNRM2KERNEL = dznrm2_thunderx2t99.c
13+
+SNRM2KERNEL = nrm2.S
14+
+DNRM2KERNEL = nrm2.S
15+
+CNRM2KERNEL = znrm2.S
16+
+ZNRM2KERNEL = znrm2.S
17+
18+
DDOTKERNEL = dot_thunderx2t99.c
19+
SDOTKERNEL = dot_thunderx2t99.c

deps/patches/openblas-Only-filter-out-mavx-on-Sandybridge.patch

Lines changed: 0 additions & 221 deletions
This file was deleted.

deps/patches/openblas-armv8-volatile-detecion.patch

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)