Skip to content

Commit

Permalink
Add OpenBLAS patch for aarch64 (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie authored May 5, 2020
1 parent 5b5511f commit 6feb92a
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 1c64c55baca23e2a18b78a8391d83cfbc2cb56a7 Mon Sep 17 00:00:00 2001
From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Date: Tue, 31 Mar 2020 16:53:56 +0200
Subject: [PATCH] fix initialization to zero in the NEON SGEMM_BETA kernel as
well

---
kernel/arm64/sgemm_beta.S | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/kernel/arm64/sgemm_beta.S b/kernel/arm64/sgemm_beta.S
index a3b97e23..574485bc 100755
--- a/kernel/arm64/sgemm_beta.S
+++ b/kernel/arm64/sgemm_beta.S
@@ -81,14 +81,14 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.endm

.macro INIT_ZERO
- fmul v0.4s, v0.4s, betaV0
- fmul v1.4s, v1.4s, betaV0
- fmul v2.4s, v2.4s, betaV0
- fmul v3.4s, v3.4s, betaV0
- fmul v4.4s, v4.4s, betaV0
- fmul v5.4s, v5.4s, betaV0
- fmul v6.4s, v6.4s, betaV0
- fmul v7.4s, v7.4s, betaV0
+ movi v0.4s, #0x0
+ movi v1.4s, #0x0
+ movi v2.4s, #0x0
+ movi v3.4s, #0x0
+ movi v4.4s, #0x0
+ movi v5.4s, #0x0
+ movi v6.4s, #0x0
+ movi v7.4s, #0x0
.endm

/**************************************************************************************
--
2.25.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 1c64c55baca23e2a18b78a8391d83cfbc2cb56a7 Mon Sep 17 00:00:00 2001
From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Date: Tue, 31 Mar 2020 16:53:56 +0200
Subject: [PATCH] fix initialization to zero in the NEON SGEMM_BETA kernel as
well

---
kernel/arm64/sgemm_beta.S | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/kernel/arm64/sgemm_beta.S b/kernel/arm64/sgemm_beta.S
index a3b97e23..574485bc 100755
--- a/kernel/arm64/sgemm_beta.S
+++ b/kernel/arm64/sgemm_beta.S
@@ -81,14 +81,14 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.endm

.macro INIT_ZERO
- fmul v0.4s, v0.4s, betaV0
- fmul v1.4s, v1.4s, betaV0
- fmul v2.4s, v2.4s, betaV0
- fmul v3.4s, v3.4s, betaV0
- fmul v4.4s, v4.4s, betaV0
- fmul v5.4s, v5.4s, betaV0
- fmul v6.4s, v6.4s, betaV0
- fmul v7.4s, v7.4s, betaV0
+ movi v0.4s, #0x0
+ movi v1.4s, #0x0
+ movi v2.4s, #0x0
+ movi v3.4s, #0x0
+ movi v4.4s, #0x0
+ movi v5.4s, #0x0
+ movi v6.4s, #0x0
+ movi v7.4s, #0x0
.endm

/**************************************************************************************
--
2.25.1

0 comments on commit 6feb92a

Please sign in to comment.