From: "Ludovic Courtès" <ludo@gnu.org>
To: 49096@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludovic.courtes@inria.fr>,
"Florent Pruvost" <florent.pruvost@inria.fr>,
"Emmanuel Agullo" <emmanuel.agullo@inria.fr>
Subject: [bug#49096] [PATCH] gnu: petsc: Link against OpenBLAS rather than LAPACK.
Date: Fri, 18 Jun 2021 18:12:04 +0200 [thread overview]
Message-ID: <20210618161204.32542-1-ludo@gnu.org> (raw)
From: Ludovic Courtès <ludovic.courtes@inria.fr>
OpenBLAS performs better than LAPACK, the reference implementation.
This is also consistent with the choice of BLAS/LAPACK implementations
made in most other packages.
* gnu/packages/maths.scm (petsc)[inputs]: Replace LAPACK by OPENBLAS.
[arguments]: Pass "--with-openmp=1".
---
gnu/packages/maths.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Hi!
Usually there’s no reason to depend on the reference (“Netlib”) BLAS/LAPACK
implementations because they perform poorly. This change is one way to
bring consistency here.
Thoughts?
Ludo’.
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index a79d546abd..8d47f91310 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2417,7 +2417,7 @@ September 2004}")
`(("python" ,python-2)))
(inputs
`(("gfortran" ,gfortran)
- ("lapack" ,lapack)
+ ("openblas" ,openblas)
("superlu" ,superlu)
;; leaving out hdf5 and fftw, as petsc expects them to be built with mpi
;; leaving out opengl, as configuration seems to only be for mac
@@ -2428,6 +2428,7 @@ September 2004}")
#:configure-flags
`("--with-mpi=0"
"--with-openmp=1"
+ "--with-openblas=1"
"--with-superlu=1")
#:make-flags
;; Honor (parallel-job-count) for build. Do not use --with-make-np,
--
2.32.0
next reply other threads:[~2021-06-18 16:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-18 16:12 Ludovic Courtès [this message]
2021-06-21 13:00 ` [bug#49096] [PATCH] gnu: petsc: Link against OpenBLAS rather than LAPACK Efraim Flashner
2021-06-22 7:29 ` Ludovic Courtès
2021-06-23 12:34 ` zimoun
2021-06-22 15:57 ` bug#49096: " Ludovic Courtès
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=20210618161204.32542-1-ludo@gnu.org \
--to=ludo@gnu.org \
--cc=49096@debbugs.gnu.org \
--cc=emmanuel.agullo@inria.fr \
--cc=florent.pruvost@inria.fr \
--cc=ludovic.courtes@inria.fr \
/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).