aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-07-14 00:19:05 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-07-14 00:19:05 +0000
commit09d6ef8b0f5968eb19dce55ad47f73bb92c6a122 (patch)
tree06be0b1b25aa1260d9d410d887a8981cc78b4c23
parent35876801c90c9777e65ad63456b3e9c91cb0b0f6 (diff)
downloadports-09d6ef8b0f5968eb19dce55ad47f73bb92c6a122.tar.gz
ports-09d6ef8b0f5968eb19dce55ad47f73bb92c6a122.zip
math/openblas: fix build on amd64
Same issue as in https://github.com/xianyi/OpenBLAS/issues/3309. While it builds on i386 and powerpc64, for some reason it fails on amd64.
-rw-r--r--math/openblas/files/patch-interface_gemv.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/math/openblas/files/patch-interface_gemv.c b/math/openblas/files/patch-interface_gemv.c
new file mode 100644
index 000000000000..af1999348fe7
--- /dev/null
+++ b/math/openblas/files/patch-interface_gemv.c
@@ -0,0 +1,14 @@
+--- interface/gemv.c.orig 2021-07-14 00:09:14 UTC
++++ interface/gemv.c
+@@ -202,11 +202,6 @@ void CNAME(enum CBLAS_ORDER order,
+
+ if (alpha == ZERO) return;
+
+- if (trans == 0 && incx == 1 && incy == 1 && m*n < 2304 *GEMM_MULTITHREAD_THRESHOLD) {
+- GEMV_N(m, n, 0, alpha, a, lda, x, incx, y, incy, NULL);
+- return;
+- }
+-
+ IDEBUG_START;
+
+ FUNCTION_PROFILE_START();