From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4nCJ-00023L-I6 for guix-patches@gnu.org; Tue, 25 Sep 2018 09:16:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4nC9-0000BK-3v for guix-patches@gnu.org; Tue, 25 Sep 2018 09:16:11 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4nC6-00009e-3A for guix-patches@gnu.org; Tue, 25 Sep 2018 09:16:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g4nC5-00085J-U8 for guix-patches@gnu.org; Tue, 25 Sep 2018 09:16:01 -0400 Subject: [bug#32818] [PATCH] gnu: Add petsc-mumps-openmpi. Resent-Message-ID: Date: Tue, 25 Sep 2018 08:14:50 -0500 From: Eric Bavier Message-ID: <20180925081450.2c348bb3@centurylink.net> In-Reply-To: <1537785164-18606-1-git-send-email-pgarlick@tourbillion-technology.com> References: <1537785164-18606-1-git-send-email-pgarlick@tourbillion-technology.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/cEMggHJlZ3n2Oq=uhEyBeYK"; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Paul Garlick Cc: 32818@debbugs.gnu.org --Sig_/cEMggHJlZ3n2Oq=uhEyBeYK Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 24 Sep 2018 11:32:44 +0100 Paul Garlick wrote: > * gnu/packages/maths.scm (petsc-mumps-openmpi): New variable. > --- > gnu/packages/maths.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 42 insertions(+) >=20 > diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm > index 736bac1..b2fff54 100644 > --- a/gnu/packages/maths.scm > +++ b/gnu/packages/maths.scm > @@ -1724,6 +1724,48 @@ scientific applications modeled by partial differe= ntial equations.") > ,@(delete "--with-mpi=3D0" ,cf))))) > (synopsis "Library to solve PDEs (with complex scalars and MPI suppo= rt)"))) > =20 > +(define-public petsc-mumps-openmpi > + (package (inherit petsc-openmpi) > + (name "petsc-mumps-openmpi") > + (inputs > + `(("metis" ,metis) > + ("mumps" ,mumps-openmpi) > + ("scalapack" ,scalapack) > + ("scotch" ,pt-scotch) > + ,@(package-inputs petsc-openmpi))) I don't see why we'd add this as a new package, rather than simply adjust the capabilities/inputs of the "petsc-openmpi" package. > + (arguments > + (substitute-keyword-arguments (package-arguments petsc-openmpi) > + ((#:configure-flags cf) > + ``(,(string-append "--with-metis-include=3D" > + (assoc-ref %build-inputs "metis") "/include") > + ,(string-append "--with-metis-lib=3D" > + (assoc-ref %build-inputs "metis") "/lib/" > + "libmetis.so") > + ,(string-append "--with-mumps-include=3D" > + (assoc-ref %build-inputs "mumps") "/include") > + ,(string-append "--with-mumps-lib=3D[" > + (assoc-ref %build-inputs "mumps") "/lib/" > + "libdmumps.a," > + "libzmumps.a," > + "libsmumps.a," > + "libcmumps.a," > + "libmumps_common.a," > + "libpord.a]") > + ,(string-append "--with-scalapack-lib=3D" > + (assoc-ref %build-inputs "scalapack") "/lib/" > + "libscalapack.so") > + ,(string-append "--with-ptscotch-include=3D" > + (assoc-ref %build-inputs "scotch") "/include") > + ,(string-append "--with-ptscotch-lib=3D[" > + (assoc-ref %build-inputs "scotch") "/lib/" > + "libesmumps.a," > + "libscotch.a," > + "libscotcherr.a," > + "libptesmumps.a," > + "libptscotch.a," > + "libptscotcherr.a]") I believe PETSc's configure script will handle much of the flags on its own if it's provided with "--with-metis", "--with-scotch", "--with-mumps", "--with-scalapack" flags. I have not tried building this yet, but I will give it a try later. `~Eric --Sig_/cEMggHJlZ3n2Oq=uhEyBeYK Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoMXjUi7471xkzbfw/XPKxxnTJWYFAluqNMoACgkQ/XPKxxnT JWZ8fA/7Bsr5E3uHRbxrpT50387054Ebu2WIOMvT7EQafIrWvBS+Vz4DxY0No3op m2ceBajcpmTiNWwpACSTInvEvW7Un0y6eWYgdj3JaVHqVWrrllZNvP6c3INUorTE /BOgUTD3xJT3Q39X5sA8joDLqenaD8fE1YAMCQDqnHF7pUfFOGGZBhrpq7OS9NpJ qm8CWGlEwx9TA+p5S1mPFtj8kYx20s5+OpKfSe+8mZLf2surPRmKscYMT/K4KQhe RHwCmi41uHGVTh3IdNLYsZ/GxFrUcLV3wAQ2rNKNAAZCa6rxLCHTie2gMaPe5t1T 22OPT/27fr2+firMNfp+Su2SlNpIN45MdD3665oNL/PRrkWUjKywM+OW7QM5rx5O 7dGyAyKi6pCbh4DxlIoYsinOG1bVyMgFATDjPsOB3aKI4khc/MV3SnT3gOeqK35N RIHyO+nhyou7GvhkpZldsU3pvgERAbTVTf75OTggdous3eL0dqCvJCMev8f5OH/q A/5Y+XGzibUxCsqOJrZUuS/AMOyeE8IuZ55YTkfGHkoMHLB4TNAQhVGjqC8HbZ1d Pci9BYNL40LVgcjPSi7CNXIbCU/F/XvR3V8su13E8hOqFHpYKTOHhf5p6wz4F/P+ OX0bU5FleYtjzzEt0UwVhscFnRxk13ZCCXBscwNU7fTYcCmagbE= =2ePY -----END PGP SIGNATURE----- --Sig_/cEMggHJlZ3n2Oq=uhEyBeYK--