From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qPtKILzGzGB2RQAAgWs5BA (envelope-from ) for ; Fri, 18 Jun 2021 18:15:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EKj+G7zGzGB9VgAAbx9fmQ (envelope-from ) for ; Fri, 18 Jun 2021 16:15:56 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3975C1C9ED for ; Fri, 18 Jun 2021 18:15:56 +0200 (CEST) Received: from localhost ([::1]:51440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luH9v-0001eM-4I for larch@yhetil.org; Fri, 18 Jun 2021 12:15:55 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624032956; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=a8q+So7vYQKGtMzuWXJDcqVoploxppn9K8y7NGnGWJc=; b=gqin9nsSdqdDdoOP516vQfIUmKeQ/wZEjEQ0/0CS1EG8pp71jHj5wbTD0ie08S4gtLLcR6 soDvmpfpAUxCqCzIwnbMCPwpPIZuncKPGbaLQghBVCbJhzVNymFOFfq/WiRzli63BAsR6w CyUzBc+/yqhre3abNUmb5KHVIBBy8F4aOuZx7oSPf2VadgyJBbrHM7HniZWUXzPv8uBWHg ZF7y3wiBb4J43OnZh5aISjmJ9hffH4z43iw2h7QXKyNOmbHYsY+5QW2ieqBNY1/evdmQJp 87a1qzQWkMhFyj9Z8fkA29DL2hwg1mpPkU6fZigA5S5fRvKMgMi4GUhzStK+Jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624032956; a=rsa-sha256; cv=none; b=bYK5CzyRq4S498WPAhc+sJAXnPElMEEnyPhpoIt2VyVYbmTe0R52lD6BoTiJdPe85HCv0m sncz/Udk7HW8ifBsAIkrYz1TEVxPXQGzoMmBHtg/5gSFywKULv84hKU+v2UN/xu1Qc4Tk9 nRDf0GtMBXHSoy24HHwR7P27Y/F4Uy8GaPRuHunJ4ISW6wde1oqHAB/7h66uJrKNNNrV4s YCrhv6ybln5K+SqADRS6LWUM2Hu1NPZ5wp8YLcCb6h54MH1mdOjtzUYwTT7WVNl4xGXC1b rMzRmZqfaovvSvQ+fZiCVjhP49uXKSebDKSoZaTB8tDrI7wHyyut2KqJguoLMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3975C1C9ED X-Spam-Score: -0.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: anaaqC6urIOr 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, -- 2.32.0