[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/11: gnu: julia: Conditionally use openblas with ILP64 support.
From: |
guix-commits |
Subject: |
03/11: gnu: julia: Conditionally use openblas with ILP64 support. |
Date: |
Thu, 28 Sep 2023 07:37:39 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 16bc2f3609facce36de3c1b135cac4a5a87f99a7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Sep 17 21:12:36 2023 +0200
gnu: julia: Conditionally use openblas with ILP64 support.
Fixes <https://bugs.gnu.org/63986>.
Reported by Cayetano Santos <csantosb@inventati.org>.
* gnu/packages/julia.scm (julia)[arguments]<#:phases>: Conditionally use
OpenBLAS with ILP64 support for x86-64 target.
<#:make-flags>: Likewise.
[inputs]: Conditionally replace openblas by openblas-ilp64 for x86-64
target.
Co-authored-by: Simon Tournier <zimon.toutoune@gmail.com>
---
gnu/packages/julia.scm | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm
index ba54175822..8ba2b480ce 100644
--- a/gnu/packages/julia.scm
+++ b/gnu/packages/julia.scm
@@ -269,7 +269,10 @@ libraries. It is also a bit like @code{ldd} and
@code{otool -L}.")
(substitute* (jlpath "nghttp2")
(((from "libnghttp2")) (to "libnghttp2" "libnghttp2")))
(substitute* (jlpath "OpenBLAS")
- (((from "libopenblas")) (to "openblas" "libopenblas")))
+ (((from "libopenblas"))
+ ,@(if (target-x86-64?)
+ `((to "openblas" "libopenblas64_" "libopenblas"))
+ `((to "openblas" "libopenblas")))))
(substitute* (jlpath "OpenLibm")
(((from "libopenlibm")) (to "openlibm" "libopenlibm")))
(substitute* (jlpath "PCRE2")
@@ -479,12 +482,13 @@ using Dates: @dateformat_str, Date, DateTime, DateFormat,
Time"))
"NO_GIT=1" ; build from release tarball.
"USE_GPL_LIBS=1" ; proudly
- ,@(if (target-aarch64?)
- `("USE_BLAS64=0")
- '())
-
- "LIBBLAS=-lopenblas"
- "LIBBLASNAME=libopenblas"
+ ,@(if (target-x86-64?)
+ `("USE_BLAS64=1"
+ "LIBBLAS=-lopenblas64_"
+ "LIBBLASNAME=libopenblas64_")
+ `("USE_BLAS64=0"
+ "LIBBLAS=-lopenblas"
+ "LIBBLASNAME=libopenblas"))
(string-append "UTF8PROC_INC="
(assoc-ref %build-inputs "utf8proc")
@@ -513,7 +517,9 @@ using Dates: @dateformat_str, Date, DateTime, DateFormat,
Time"))
("llvm" ,llvm-julia)
("mbedtls-apache" ,mbedtls-apache)
("mpfr" ,mpfr)
- ("openblas" ,openblas)
+ ,@(if (target-x86-64?)
+ `(("openblas" ,openblas-ilp64))
+ `(("openblas" ,openblas)))
("openlibm" ,openlibm)
("p7zip" ,p7zip)
("pcre2" ,pcre2)
- branch master updated (6fa85076ae -> 3963fa1a46), guix-commits, 2023/09/28
- 01/11: gnu: emacs-elfeed: Patch curl executable., guix-commits, 2023/09/28
- 02/11: gnu: openblas-ilp64: Add symbol suffix., guix-commits, 2023/09/28
- 04/11: gnu: julia-arraylayouts: Fix tests., guix-commits, 2023/09/28
- 07/11: gnu: julia-wcslib-jll: Downgrade wcslib version., guix-commits, 2023/09/28
- 09/11: gnu: julia-arraylayouts: Update to 0.8.18., guix-commits, 2023/09/28
- 03/11: gnu: julia: Conditionally use openblas with ILP64 support.,
guix-commits <=
- 11/11: gnu: julia-arraylayouts: Fix building on more architectures., guix-commits, 2023/09/28
- 08/11: gnu: julia-genericlinearalgebra: Update to 0.3.0., guix-commits, 2023/09/28
- 10/11: gnu: julia-bandedmatrices: Fix compatibility with openblas64., guix-commits, 2023/09/28
- 06/11: gnu: Add wcslib-7.12., guix-commits, 2023/09/28
- 05/11: gnu: julia-scanbyte: Update to 0.4.0., guix-commits, 2023/09/28