From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4EvqL5aP0GDbAgEAgWs5BA (envelope-from ) for ; Mon, 21 Jun 2021 15:09:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oAegK5aP0GDRZQAA1q6Kng (envelope-from ) for ; Mon, 21 Jun 2021 13:09:42 +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 0B607259C8 for ; Mon, 21 Jun 2021 15:09:42 +0200 (CEST) Received: from localhost ([::1]:50486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvJgK-0006Bg-Mb for larch@yhetil.org; Mon, 21 Jun 2021 09:09:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvJYw-00036n-3P for guix-patches@gnu.org; Mon, 21 Jun 2021 09:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvJYv-0006N6-R2 for guix-patches@gnu.org; Mon, 21 Jun 2021 09:02:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvJYv-0000ez-MS for guix-patches@gnu.org; Mon, 21 Jun 2021 09:02:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49096] [PATCH] gnu: petsc: Link against OpenBLAS rather than LAPACK. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Jun 2021 13:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49096 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Florent Pruvost , Emmanuel Agullo , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 49096@debbugs.gnu.org Received: via spool by 49096-submit@debbugs.gnu.org id=B49096.16242805071812 (code B ref 49096); Mon, 21 Jun 2021 13:02:01 +0000 Received: (at 49096) by debbugs.gnu.org; 21 Jun 2021 13:01:47 +0000 Received: from localhost ([127.0.0.1]:35790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvJYg-0000So-TH for submit@debbugs.gnu.org; Mon, 21 Jun 2021 09:01:47 -0400 Received: from flashner.co.il ([178.62.234.194]:34152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvJYc-0000K7-1i for 49096@debbugs.gnu.org; Mon, 21 Jun 2021 09:01:45 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id 2A11940434; Mon, 21 Jun 2021 13:01:36 +0000 (UTC) Date: Mon, 21 Jun 2021 16:00:43 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 49096@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , Florent Pruvost , Emmanuel Agullo References: <20210618161204.32542-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DPiyIhgouhG4klv4" Content-Disposition: inline In-Reply-To: <20210618161204.32542-1-ludo@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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=1624280982; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=v7c/NlYrfAYfUbauXPeN1t4ay8DvKVzGxpxKTCMuHp4=; b=fI6QsSG8ZHYrIw1/rA8ZTFjxBOs/MF0rqynwcMzdspLkyl/fKQOh+u5FbyklYFCvm/3Cyo tz013oBBzUnO+owuHGYquSdqCosIl8SGwWXigzMX568k7/fYzYY4/vHvhBW9nlG5FliCec GeiNPCTnMnQUJaM8OoXqTBu7PJFi/L8Lki8YpwpsZGIJunsOLr3by/Mt6nhEvcoIpLfwji SGnmgR/EX8LMLMTzkZI+VLvA0f0xd40J9rhncVSGFM/2l3234DpK+rwjqhYxhJh1qfgaEu fFLjOQF20juQwRr9AaMKZW3n3AhSNwAjwCnH4kJe2i1d9ocLlp+4vK/3XM/Q4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624280982; a=rsa-sha256; cv=none; b=pOTXIW11bQaCYeV4Mb21jblMBs9qvY28YBOT4w7O/hyBL38yEMGSGvWcEjDkMULGFK3l7I paP5I4gOoD5SvB+X3InF8014mGnOykojC7Nbil+e7PiGdYo1RN7gCdG9dC/gTXHncWO53Y zPsSSnfC0mrrQpXTAFJfmlMYoVv+FH3zS44ZPZczM62wBMZV0mBu74gCtvCW15i3TrCj3o 7fE6hvSYJtwNQK+Bi04H46JAnjiq00nwQjqQRlFDa2hPM/EQ6MjZyCWseayDCFtNHGR5iB tVid7xzjIeVP8Sq15Lyyb961JzQRWCEfPfW7odoyRtPejD5SjVPPDpix4AXCxg== 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: -4.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Queue-Id: 0B607259C8 X-Spam-Score: -4.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: Mi5b1g0bnTBo --DPiyIhgouhG4klv4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 18, 2021 at 06:12:04PM +0200, Ludovic Court=C3=A8s wrote: > From: Ludovic Court=C3=A8s >=20 > OpenBLAS performs better than LAPACK, the reference implementation. > This is also consistent with the choice of BLAS/LAPACK implementations > made in most other packages. >=20 > * gnu/packages/maths.scm (petsc)[inputs]: Replace LAPACK by OPENBLAS. > [arguments]: Pass "--with-openmp=3D1". > --- > gnu/packages/maths.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > Hi! >=20 > Usually there=E2=80=99s no reason to depend on the reference (=E2=80=9CNe= tlib=E2=80=9D) BLAS/LAPACK > implementations because they perform poorly. This change is one way to > bring consistency here. >=20 > Thoughts? >=20 > Ludo=E2=80=99. It sounds reasonable to me. As long as you're open to thoughts, perhaps we want to have a discussion (in a new thread) about renaming the input labels for lapack/openblas so it's easier to do 'guix build foo --with-inputs=3Dblas=3Dopenblas-tuned-for-my-machine' >=20 > 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 w= ith mpi > ;; leaving out opengl, as configuration seems to only be for mac > @@ -2428,6 +2428,7 @@ September 2004}") > #:configure-flags > `("--with-mpi=3D0" > "--with-openmp=3D1" > + "--with-openblas=3D1" > "--with-superlu=3D1") > #:make-flags > ;; Honor (parallel-job-count) for build. Do not use --with-make-= np, > --=20 > 2.32.0 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --DPiyIhgouhG4klv4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmDQjXkACgkQQarn3Mo9 g1F63w//V5UCkpiH8hAclN5apMIO+FLmZ8u8WinIq42/zl07Unl7Ky1SsOl2fMXD hlI0CyzcefIJWZehRMJY6RmCRGKE2rPfiP2KRuyOuRxFGWZsy0woKqyCzZXqBtrx 6yKVrREc5ORwtKVdo4Grp6vG5i2y8d4sqUe5LSK5yVfiLAE+2BvZsro2Q2dYO4Fe /TkhdgJ5L5ZgyG+CF/nMtWOFwn+ruNJrm3UnWdTvGABWJZ/PYwyipIbCarSxYVvk BD4VUDRCyBGJr/aFjXfbKp++U7AieAG+yWY7OUL+ZtXWznaYUPccyzUzczV2gEKE 6muWY/J4ffnZAvAQu4FI3JETS9TKcxkH1uAmpfAj1RcM7Wmip5goUeFfODlAJlIy c1eZ7yNgHkA1ueQv5pUWMulf8Qjw1FvBcH26dfQwTaeeE/ZmpYM+O23p3ro8jMA/ Iewd8W2VQmtY12q2Gu3jHmN03IeVEnEyInokJNuBJ23264gwIAh2qXgvlnBHLjGc yDHJLeCr9RUGRzqLNy5F6DC9Oe2S8h51NhCFHMO5MXMzYuLgUVgL9HrJ/GCj4WQD O77vaZABLpstz6i4rgE0BgDkUvhh0d4U09qqwV5Spm/14rbpGW1T/tWbkgU0AEuh e3L4eTwsMHlPeQf+vge7HpuapGDFebVBuFSZMjecP74gx7lcOPU= =+8ra -----END PGP SIGNATURE----- --DPiyIhgouhG4klv4--