From patchwork Fri Jun 18 16:12:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 30396 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 52F5427BC78; Fri, 18 Jun 2021 17:15:59 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2391B27BC78 for ; Fri, 18 Jun 2021 17:15:59 +0100 (BST) Received: from localhost ([::1]:51440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luH9y-0001eM-48 for patchwork@mira.cbaines.net; Fri, 18 Jun 2021 12:15:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luH78-0004Tk-I2 for guix-patches@gnu.org; Fri, 18 Jun 2021 12:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luH77-0003N1-R7 for guix-patches@gnu.org; Fri, 18 Jun 2021 12:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1luH77-00034h-OC; Fri, 18 Jun 2021 12:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49096] [PATCH] gnu: petsc: Link against OpenBLAS rather than LAPACK. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: florent.pruvost@inria.fr, emmanuel.agullo@inria.fr, guix-patches@gnu.org Resent-Date: Fri, 18 Jun 2021 16:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49096 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49096@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Florent Pruvost , Emmanuel Agullo X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Florent Pruvost , Emmanuel Agullo Received: via spool by submit@debbugs.gnu.org id=B.162403273911760 (code B ref -1); Fri, 18 Jun 2021 16:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jun 2021 16:12:19 +0000 Received: from localhost ([127.0.0.1]:57871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luH6Q-00033c-NK for submit@debbugs.gnu.org; Fri, 18 Jun 2021 12:12:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:56632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luH6O-00033U-Ud for submit@debbugs.gnu.org; Fri, 18 Jun 2021 12:12:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luH6K-0002uY-HR for guix-patches@gnu.org; Fri, 18 Jun 2021 12:12:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56190) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luH6J-0002tQ-8L; Fri, 18 Jun 2021 12:12:11 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60792 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luH6I-0007zv-Se; Fri, 18 Jun 2021 12:12:11 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Fri, 18 Jun 2021 18:12:04 +0200 Message-Id: <20210618161204.32542-1-ludo@gnu.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Ludovic Courtès 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,