From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 63986@debbugs.gnu.org, Nicolas Graves <ngraves@ngraves.fr>,
csantosb@inventati.org, Simon Tournier <zimon.toutoune@gmail.com>
Subject: bug#63986: Julia is very slow
Date: Thu, 14 Sep 2023 13:33:22 +0300 [thread overview]
Message-ID: <ZQLhcr_Y21H1XiYL@3900XT> (raw)
In-Reply-To: <87jztpqvtz.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 906 bytes --]
On Sun, Aug 20, 2023 at 10:53:44PM +0200, Ludovic Courtès wrote:
> Hi!
>
> Friendly ping. :-)
>
> https://issues.guix.gnu.org/63986
>
> Ludo’.
>
> Ludovic Courtès <ludo@gnu.org> skribis:
>
> > Hi there!
> >
> > What’s the status? Sounds like we have a couple of fixes already.
> >
> > Maybe you can submit one of them to guix-patches@gnu.org so qa.guix can
> > pick it up. And if one of them is more intrusive (more rebuilds), then
> > submit it separately so it gets merged later? How does that sound?
> >
> > Ludo’.
I've attached a diff to adjust openblas64 and to use it for x86_64 in
julia. I don't know if it's faster than the current openblas.
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #1.2: julia-openblas-ilp64.patch --]
[-- Type: text/plain, Size: 2589 bytes --]
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 @@ (define-public julia
(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 @@ (define-public julia
"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 @@ (define-public julia
("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)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index f5a2181905..2d3ce41cb7 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4645,7 +4645,9 @@ (define-public openblas-ilp64
(arguments
(substitute-keyword-arguments (package-arguments openblas)
((#:make-flags flags #~'())
- #~(append (list "INTERFACE64=1" "LIBNAMESUFFIX=ilp64")
+ #~(append (list "INTERFACE64=1"
+ "SYMBOLSUFFIX=64_"
+ "LIBPREFIX=libopenblas64_")
#$flags))))
(synopsis "Optimized BLAS library based on GotoBLAS (ILP64 version)")
(license license:bsd-3)))
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-09-14 10:34 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 21:42 bug#63986: Julia is very slow Cayetano Santos via Bug reports for GNU Guix
2023-06-14 16:00 ` Ludovic Courtès
2023-06-19 16:13 ` Simon Tournier
2023-06-21 14:36 ` Ludovic Courtès
2023-06-21 20:39 ` Cayetano Santos via Bug reports for GNU Guix
2023-06-22 13:26 ` Cayetano Santos via Bug reports for GNU Guix
2023-06-22 14:37 ` Efraim Flashner
2023-06-22 15:52 ` Simon Tournier
2023-06-22 16:25 ` Efraim Flashner
2023-06-22 16:56 ` Cayetano Santos via Bug reports for GNU Guix
2023-06-22 17:12 ` Simon Tournier
2023-06-23 9:09 ` Ludovic Courtès
2023-06-23 9:16 ` Efraim Flashner
2023-06-23 12:11 ` Simon Tournier
2023-06-23 13:23 ` Simon Tournier
2023-06-23 14:16 ` Efraim Flashner
2023-07-06 14:13 ` Ludovic Courtès
2023-08-20 20:53 ` Ludovic Courtès
2023-09-14 10:33 ` Efraim Flashner [this message]
2023-09-15 19:45 ` Cayetano Santos via Bug reports for GNU Guix
2023-09-16 10:47 ` Simon Tournier
2023-09-16 11:18 ` Simon Tournier
2023-09-20 15:57 ` Simon Tournier
2023-09-24 8:37 ` Cayetano Santos via Bug reports for GNU Guix
2023-09-25 14:46 ` Ludovic Courtès
2023-09-26 9:27 ` Efraim Flashner
2023-09-29 8:46 ` Ludovic Courtès
2023-09-29 10:12 ` Efraim Flashner
2023-09-28 11:41 ` Efraim Flashner
2023-06-22 18:47 ` Simon Tournier
2023-06-22 18:55 ` Efraim Flashner
2023-06-22 20:13 ` Efraim Flashner
2023-06-23 12:06 ` Simon Tournier
2023-09-15 19:49 ` bug#63986: Fixed Cayetano Santos via Bug reports for GNU Guix
2023-09-16 10:23 ` bug#63986: [PATCH 0/2] Fix bug#63986: Julia is very slow Simon Tournier
[not found] ` <handler.63986.D63986.169480740431199.notifdone@debbugs.gnu.org>
2023-09-16 11:03 ` Simon Tournier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZQLhcr_Y21H1XiYL@3900XT \
--to=efraim@flashner.co.il \
--cc=63986@debbugs.gnu.org \
--cc=csantosb@inventati.org \
--cc=ludo@gnu.org \
--cc=ngraves@ngraves.fr \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).