From patchwork Mon May 2 13:28:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 2121 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 5990727BBEB; Mon, 2 May 2022 14:29:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1395927BBE9 for ; Mon, 2 May 2022 14:29:12 +0100 (BST) Received: from localhost ([::1]:53988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlW6x-0003R5-8w for patchwork@mira.cbaines.net; Mon, 02 May 2022 09:29:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlW6o-0003Ow-Mw for guix-patches@gnu.org; Mon, 02 May 2022 09:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41269) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlW6o-00014T-EP for guix-patches@gnu.org; Mon, 02 May 2022 09:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlW6o-0002p6-An for guix-patches@gnu.org; Mon, 02 May 2022 09:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50080] [PATCH v3 1/4] gnu: petsc-openmpi: Fix header inclusions. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50080 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50080@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 50080-submit@debbugs.gnu.org id=B50080.165149812210791 (code B ref 50080); Mon, 02 May 2022 13:29:02 +0000 Received: (at 50080) by debbugs.gnu.org; 2 May 2022 13:28:42 +0000 Received: from localhost ([127.0.0.1]:35154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlW6U-0002ny-8W for submit@debbugs.gnu.org; Mon, 02 May 2022 09:28:42 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:54308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlW6S-0002nS-Fl for 50080@debbugs.gnu.org; Mon, 02 May 2022 09:28:41 -0400 Date: Mon, 02 May 2022 13:28:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651498113; bh=mIrIdwTeO1X9PutOqgIPZM9hsn9ZKSy0XRZHq3V5XBQ=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=HoQx5hjj9zqNUsCj5UxTStnOVSxJ7GlF6wQSt/wtjxGgrk3daYVNLg3w0qEnmTlEM Gxk4aHVbIrCODaOyjIKmDVrSrSWXNKz75vkJ5X5dWpi5b7O8xkVafwhjcg0duexFXx aqFQGLwSLnx/wfGuSAc3jACyCxRHawr5UNZrE5BJWi8mOP9b0KCmxEPWy/jtxiLdNo SqALeE/tskStgMDF7FW7aPB221mk/vM3m9PwMe2xu0mT9UxBsFvZ2kyM4mALcFmc3P pxkqCCGFV3kKHujUOGvPBgRiTUF3zGFVcymMQpuRXAYX94dFca1fSoQZ5JuzhDA2Oi dfxpK+VnLu/yg== From: "Paul A. Patience" Message-ID: <20220502132806.614632-2-paul@apatience.com> In-Reply-To: <20220502132806.614632-1-paul@apatience.com> References: <20220502132806.614632-1-paul@apatience.com> Feedback-ID: 19227857:user:proton 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (petsc-openmpi)[arguments]: Add 'patch-header-inclusions' phase. --- gnu/packages/maths.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 2.36.0 diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index fcd9c5482f..2922d95a70 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -3174,7 +3174,16 @@ (define-public petsc-openmpi (("libptesmumps") "libesmumps") (("libptscotchparmetis") "libptscotchparmetisv3")))) (add-before 'configure 'mpi-setup - #$%openmpi-setup))))) + #$%openmpi-setup) + (add-after 'install 'patch-header-inclusions + ;; TODO: Replace with ‘patch-header-inclusions’ when (some form + ;; of) https://issues.guix.gnu.org/54780#19 is merged. + (lambda _ + (substitute* (string-append #$output "/include/petsclayouthdf5.h") + (("<(H5Ipublic.h)>" _ header) + (format #f "<~a/include/~a>" + #$(this-package-input "hdf5-parallel-openmpi") + header))))))))) (synopsis "Library to solve PDEs (with MUMPS and MPI support)"))) (define-public petsc-complex-openmpi From patchwork Mon May 2 13:28:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 2123 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 5CD7A27BBEA; Mon, 2 May 2022 14:29:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A756327BBE9 for ; Mon, 2 May 2022 14:29:23 +0100 (BST) Received: from localhost ([::1]:54662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlW78-0003su-Ry for patchwork@mira.cbaines.net; Mon, 02 May 2022 09:29:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlW6p-0003Ox-35 for guix-patches@gnu.org; Mon, 02 May 2022 09:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlW6o-00014g-Qp for guix-patches@gnu.org; Mon, 02 May 2022 09:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlW6o-0002pE-Mr for guix-patches@gnu.org; Mon, 02 May 2022 09:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50080] [PATCH v3 2/4] gnu: sundials: Fix various issues. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50080 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50080@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 50080-submit@debbugs.gnu.org id=B50080.165149813210816 (code B ref 50080); Mon, 02 May 2022 13:29:02 +0000 Received: (at 50080) by debbugs.gnu.org; 2 May 2022 13:28:52 +0000 Received: from localhost ([127.0.0.1]:35161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlW6d-0002oO-Ob for submit@debbugs.gnu.org; Mon, 02 May 2022 09:28:52 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:26493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlW6c-0002oC-AZ for 50080@debbugs.gnu.org; Mon, 02 May 2022 09:28:50 -0400 Date: Mon, 02 May 2022 13:28:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651498124; bh=uGK8gbeFTu+MfslpJYh2yngy6BEGt4OPyi3qhRzrc9w=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=brisrKsZLrRkRY1kRKww8HajNsW7ORnZgoljXOY9hP1IiB5SikOhkkcGz31pvnfp0 BqamOPTah21dMLzAtXnWyOloFaOC1EowZkWXkUULAZOsgQeko1L+Ffx0gzJ2bK4DKd 3EY96fP3lhB2GLnMnQzQQ6LEtf80DCz7Mb5jEAAkifbCrAFi9kBFzGzNgQ1MUBxzVR ag86pk8mT2hMZIFMay/0bgvwMdjSCCq12RHAAyHWdfglLAbcFigYE/U05imm+2/MYO ajPvWovE1ZxZM1TBl8As1tVaAWmqTF5y6IaTBNAR3tMaZdc/UdpAxCzTGzxfEhJaCo DufkgtCi1Gitg== From: "Paul A. Patience" Message-ID: <20220502132806.614632-3-paul@apatience.com> In-Reply-To: <20220502132806.614632-1-paul@apatience.com> References: <20220502132806.614632-1-paul@apatience.com> Feedback-ID: 19227857:user:proton 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This commit fixes various issues. First, some of SUNDIALS's CMake variables were renamed at some point between 5.2.0 and 5.7.0, in particular KLU_ENABLE, which was changed to ENABLE_KLU. Since sundials-julia is essentially SUNDIALS 5.2.0, its configure flags need to be different from those of the sundials package. Second, commit 61bcd648ca215e3d8e75b3a3f49bfb94d66f7c79, which updated SUNDIALS to 6.1.1, accidentally completely disabled PETSc support for sundials-openmpi (PETSc is supported only with MPI) by removing the relevant configure flags. Third, SUNDIALS's default index size is 64 bits, but PETSc's is 32 bits, and they need to be the same; this issue is discussed in the next three paragraphs. The default index size in SUNDIALS 3.1.1 (which was the sundials package's version previous to the aforementioned commit) was also 64 bits (though it was configured through the SUNDIALS_INDEX_TYPE CMake variable, which could take the values INT64_T or INT32_T), but SUNDIALS's configure script didn't warn of any incompatibility with PETSc's 32-bit indices. I don't know if this was an accidental omission from the configure script or if SUNDIALS's index size didn't have to correspond to PETSc's at the time. Keeping 64-bit indices in SUNDIALS would require adding a package for PETSc with 64-bit indices (using the --with-64-bit-indices configure flag), possibly named petsc64-openmpi (to follow the style of the SCOTCH packages, i.e., scotch, scotch32, etc., though there the unadorned package name represents the 64-bit version, unlike the unadorned petsc), which would in turn require a package for METIS with 64-bit indices (using IDXTYPEWIDTH=64). However, SUNDIALS is an optional dependency of deal.II, both of which have PETSc as an optional dependency, and deal.II's index size (which defaults to 32 bits) must match PETSc's. In other words, the current deal.II package can build with SUNDIALS only if SUNDIALS has 32-bit indices. Furthermore, users needing 64-bit indices in SUNDIALS probably also need them in PETSc and other libraries. If and when 64-bit indices are deemed necessary, we can add all the package variations at once (for SUNDIALS, PETSc, METIS, deal.II and any others). * gnu/packages/maths.scm (sundials)[source]: Reuse version in URL. [native-inputs]: Capitalize and punctuate comment. [inputs]: Remove petsc, now unnecessary gfortran, and obsolete comment. Move TODO item to sundials-openmpi. [arguments]<#:configure-flags>: Add -DSUNDIALS_INDEX_SIZE=32 to match PETSc's 32-bit indices. Remove obsolete -DEXAMPLES_ENABLE_F77, -DEXAMPLES_ENABLE_F90 and -DFCMIX_ENABLE. Mention new but currently unusable -DBUILD_FORTRAN_MODULE_INTERFACE and -DEXAMPLES_ENABLE_F2003. Rename KLU_ENABLE to ENABLE_KLU. (sundials-openmpi): Use package/inherit. [inputs]: Move openmpi and petsc-openmpi from here... [propagated-inputs]: ...to here. Clarify comment. [arguments]<#:configure-flags>: Add -DENABLE_PETSC and -DPETSC_DIR, the equivalents of which were accidentally removed in commit 61bcd648ca215e3d8e75b3a3f49bfb94d66f7c79. <#:phases>: Replace a tab with spaces. [synopsis]: Replace OpenMPI with MPI to conform to other package synopses. (sundials-julia)[inputs]: Add gfortran. [arguments]<#:configure-flags>: Set only, and manually, -DCMAKE_C_FLAGS, -DSUNDIALS_INDEX_SIZE, -DKLU_ENABLE, -DKLU_INCLUDE_DIR, -DKLU_LIBRARY_DIR and -DLAPACK_ENABLE instead of inheriting from the sundials package, because some of SUNDIALS's CMake variables have changed name. [synopsis]: Capitalize “LAPACK”. --- gnu/packages/maths.scm | 64 +++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 26 deletions(-) -- 2.36.0 diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2922d95a70..5d4778da83 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -6129,28 +6129,30 @@ (define-public sundials (source (origin (method url-fetch) - (uri (string-append "https://github.com/LLNL/sundials/releases/download/v6.1.1/" - "sundials-" version ".tar.gz")) + (uri (string-append "https://github.com/LLNL/sundials/releases/download/v" + version "/sundials-" version ".tar.gz")) (sha256 (base32 "0327a1fy8rilwc4brsqqb71jd1ymb7mqgxsylab06crcg5xn7byg")))) (build-system cmake-build-system) (native-inputs - (list python-2)) ;for tests; syntax incompatible with python 3 + (list python-2)) ; For tests; syntax incompatible with Python 3. (inputs - (list gfortran ;for fcmix - openblas petsc suitesparse)) ;TODO: Add hypre + (list openblas suitesparse)) (arguments - `(#:configure-flags `("-DCMAKE_C_FLAGS=-O2 -g -fcommon" + '(#:configure-flags `("-DCMAKE_C_FLAGS=-O2 -g -fcommon" + + "-DSUNDIALS_INDEX_SIZE=32" + ;; Incompatible with 32-bit indices. + ;;"-DBUILD_FORTRAN_MODULE_INTERFACE:BOOL=ON" + "-DEXAMPLES_ENABLE_C:BOOL=ON" "-DEXAMPLES_ENABLE_CXX:BOOL=ON" - "-DEXAMPLES_ENABLE_F77:BOOL=ON" - "-DEXAMPLES_ENABLE_F90:BOOL=ON" + ;; Requires -DBUILD_FORTRAN_MODULE_INTERFACE:BOOL=ON. + ;;"-DEXAMPLES_ENABLE_F2003:BOOL=ON" "-DEXAMPLES_INSTALL:BOOL=OFF" - "-DFCMIX_ENABLE:BOOL=ON" - - "-DKLU_ENABLE:BOOL=ON" + "-DENABLE_KLU:BOOL=ON" ,(string-append "-DKLU_INCLUDE_DIR=" (assoc-ref %build-inputs "suitesparse") "/include") @@ -6168,22 +6170,26 @@ (define-public sundials (license license:bsd-3))) (define-public sundials-openmpi - (package - (inherit sundials) + (package/inherit sundials (name "sundials-openmpi") - (inputs - (modify-inputs (package-inputs sundials) - (delete "petsc") - (prepend openmpi petsc-openmpi))) ;support in SUNDIALS requires MPI + (propagated-inputs + (list openmpi + ;; Support for the below requires MPI. + ;; TODO: Add HYPRE. + petsc-openmpi)) (arguments (substitute-keyword-arguments (package-arguments sundials) ((#:configure-flags flags '()) - `(cons* "-DENABLE_MPI:BOOL=ON" ,flags)) + `(cons* "-DENABLE_MPI:BOOL=ON" + "-DENABLE_PETSC:BOOL=ON" + (string-append "-DPETSC_DIR=" + (assoc-ref %build-inputs "petsc-openmpi")) + ,flags)) ((#:phases phases '%standard-phases) `(modify-phases ,phases (add-before 'check 'mpi-setup - ,%openmpi-setup))))) - (synopsis "SUNDIALS with OpenMPI support"))) + ,%openmpi-setup))))) + (synopsis "SUNDIALS with MPI support"))) (define-public sundials-julia (package @@ -6202,13 +6208,19 @@ (define-public sundials-julia "0nx4sqhmi126m14myzm7syv2053harav9snl0a247wnkcgs5rxrv")))) (inputs (modify-inputs (package-inputs sundials) - (prepend lapack))) + (prepend gfortran lapack))) (arguments - (substitute-keyword-arguments (package-arguments sundials) - ((#:configure-flags flags '()) - `(cons* "-DLAPACK_ENABLE:BOOL=ON" - ,flags)))) - (synopsis "SUNDIALS with lapack support as required by julia-sundials-jll"))) + '(#:configure-flags `("-DCMAKE_C_FLAGS=-O2 -g -fcommon" + "-DSUNDIALS_INDEX_SIZE=32" + "-DKLU_ENABLE:BOOL=ON" + ,(string-append "-DKLU_INCLUDE_DIR=" + (assoc-ref %build-inputs "suitesparse") + "/include") + ,(string-append "-DKLU_LIBRARY_DIR=" + (assoc-ref %build-inputs "suitesparse") + "/lib") + "-DLAPACK_ENABLE:BOOL=ON"))) + (synopsis "SUNDIALS with LAPACK support as required by julia-sundials-jll"))) (define-public combinatorial-blas (package From patchwork Mon May 2 13:28:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 2122 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 DA22D27BBEA; Mon, 2 May 2022 14:29:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AFFAD27BBE9 for ; Mon, 2 May 2022 14:29:17 +0100 (BST) Received: from localhost ([::1]:54364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlW72-0003gb-SX for patchwork@mira.cbaines.net; Mon, 02 May 2022 09:29:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlW6p-0003P0-Ew for guix-patches@gnu.org; Mon, 02 May 2022 09:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlW6p-00014l-6A for guix-patches@gnu.org; Mon, 02 May 2022 09:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlW6p-0002pL-2L for guix-patches@gnu.org; Mon, 02 May 2022 09:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50080] [PATCH v3 3/4] gnu: sundials-openmpi: Add HYPRE dependency. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 13:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50080 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50080@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 50080-submit@debbugs.gnu.org id=B50080.165149814110846 (code B ref 50080); Mon, 02 May 2022 13:29:03 +0000 Received: (at 50080) by debbugs.gnu.org; 2 May 2022 13:29:01 +0000 Received: from localhost ([127.0.0.1]:35165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlW6n-0002oo-9W for submit@debbugs.gnu.org; Mon, 02 May 2022 09:29:01 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]:34250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlW6l-0002oY-Kd for 50080@debbugs.gnu.org; Mon, 02 May 2022 09:29:00 -0400 Date: Mon, 02 May 2022 13:28:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651498134; bh=5rCWICuRdO/Jjx/2ZW9bTntuhouwy2ediOiWrxzu0tE=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=hqE+kubObCHVpSOHiBjsfbhqso2mEkeutRt5vs3gl9xrQTT8KCImkrrOIF1hlIJUl baDaLIVMRaUMzExP3FztV89qPJrFcum7qoEhFi+tK6nId9VAmYjYTK+B0g+Nad9pmb 89QU2QXWRnnrRf9BhnLiCdLfUVfHqDkVpegfiYhGulMQxk6Xx/xd504boYCJW1ZtSB Hcso7q5oInHgrTQHB1ETyxqJO1FmYoN0tBYsDQlDNyWGvGu2Vw3sKyhjvQiqmR7Nxc /+qPssb3qM0nQLqDOyAZ9fIfV54MejXPPL83baFnsQ2SC7oofX1bH1pfQegBcCRiW9 881BCR88B/4Ow== From: "Paul A. Patience" Message-ID: <20220502132806.614632-4-paul@apatience.com> In-Reply-To: <20220502132806.614632-1-paul@apatience.com> References: <20220502132806.614632-1-paul@apatience.com> Feedback-ID: 19227857:user:proton 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (sundials-openmpi)[propagated-inputs]: Add hypre-openmpi. [arguments]<#:configure-flags>: Add -DENABLE_HYPRE, -DHYPRE_INCLUDE_DIR and -DHYPRE_LIBRARY_DIR. --- gnu/packages/maths.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.36.0 diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 5d4778da83..03c465dfff 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -6175,12 +6175,19 @@ (define-public sundials-openmpi (propagated-inputs (list openmpi ;; Support for the below requires MPI. - ;; TODO: Add HYPRE. + hypre-openmpi petsc-openmpi)) (arguments (substitute-keyword-arguments (package-arguments sundials) ((#:configure-flags flags '()) `(cons* "-DENABLE_MPI:BOOL=ON" + "-DENABLE_HYPRE:BOOL=ON" + (string-append "-DHYPRE_INCLUDE_DIR=" + (assoc-ref %build-inputs "hypre-openmpi") + "/include") + (string-append "-DHYPRE_LIBRARY_DIR=" + (assoc-ref %build-inputs "hypre-openmpi") + "/lib") "-DENABLE_PETSC:BOOL=ON" (string-append "-DPETSC_DIR=" (assoc-ref %build-inputs "petsc-openmpi")) From patchwork Mon May 2 13:28:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 2124 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 7A04A27BBEA; Mon, 2 May 2022 14:30:36 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4C82027BBE9 for ; Mon, 2 May 2022 14:30:36 +0100 (BST) Received: from localhost ([::1]:54910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlW8J-0004B1-Ec for patchwork@mira.cbaines.net; Mon, 02 May 2022 09:30:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlW7n-00049s-Fl for guix-patches@gnu.org; Mon, 02 May 2022 09:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlW7n-0001DL-1d for guix-patches@gnu.org; Mon, 02 May 2022 09:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlW7m-0002r9-TJ for guix-patches@gnu.org; Mon, 02 May 2022 09:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50080] [PATCH v3 4/4] gnu: sundials: Update to 6.2.0. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 13:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50080 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50080@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 50080-submit@debbugs.gnu.org id=B50080.165149815210899 (code B ref 50080); Mon, 02 May 2022 13:30:02 +0000 Received: (at 50080) by debbugs.gnu.org; 2 May 2022 13:29:12 +0000 Received: from localhost ([127.0.0.1]:35173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlW6y-0002pj-JG for submit@debbugs.gnu.org; Mon, 02 May 2022 09:29:12 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:13445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlW6w-0002pV-SL for 50080@debbugs.gnu.org; Mon, 02 May 2022 09:29:11 -0400 Date: Mon, 02 May 2022 13:28:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651498145; bh=sqVil3J71YG2UWKT6ko5u75b0iPaEbzwQ0O/3ckBgEE=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=LqPUmv9GZ/i3O+3vwU+PMylaMvQ42xTPw28KDdcLR7wDJlTzvvvwzcwxCC05Evx/2 Bobo0Y0gkwoSJ12cK7CFQXDyGmIdagQ5YaPX8LhsiNTRlH9L9xMR7T3avv0aACgpKz OVM2yCb/sGMRFdRhTj24e3yDZNMz0ZC9RqeGRX/qZcNLP1Or8S3WIQ2xhFscQNznQS SKfh81YeTXizZ9+97x79UnQDYK+ujYzlH15zaOJn3N7jtkA86TDWRxBBydgOmqfulq g0/DApo12lEg0Wx+OMYxfycQYcehAFc9608st54WWPV+jfUosoe0yUaFOsL8O7JHFC oj1vbkdbTnmdg== From: "Paul A. Patience" Message-ID: <20220502132806.614632-5-paul@apatience.com> In-Reply-To: <20220502132806.614632-1-paul@apatience.com> References: <20220502132806.614632-1-paul@apatience.com> Feedback-ID: 19227857:user:proton 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (sundials): Update to 6.2.0. --- gnu/packages/maths.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.36.0 diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 03c465dfff..dd6334d4bd 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -6125,7 +6125,7 @@ (define-public tiny-bignum (define-public sundials (package (name "sundials") - (version "6.1.1") + (version "6.2.0") (source (origin (method url-fetch) @@ -6133,7 +6133,7 @@ (define-public sundials version "/sundials-" version ".tar.gz")) (sha256 (base32 - "0327a1fy8rilwc4brsqqb71jd1ymb7mqgxsylab06crcg5xn7byg")))) + "07gk9060xk3bzfqf8v4fqlp0rcxswiwlsy887zv87i1gfy9map8r")))) (build-system cmake-build-system) (native-inputs (list python-2)) ; For tests; syntax incompatible with Python 3.