guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: petsc: Link against OpenBLAS rather than LAPACK.


From: guix-commits
Subject: 01/03: gnu: petsc: Link against OpenBLAS rather than LAPACK.
Date: Tue, 22 Jun 2021 11:55:52 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit c7a5c3e0bba2ac3d197b219d21527863308b75dd
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Fri Jun 18 18:07:21 2021 +0200

    gnu: petsc: Link against OpenBLAS rather than LAPACK.
    
    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-openblas=1".
---
 gnu/packages/maths.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 84540d5..dc18536 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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]