From unknown Mon Jun 23 18:28:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66129 <66129@debbugs.gnu.org> To: bug#66129 <66129@debbugs.gnu.org> Subject: Status: [PATCH 00/20] Split SuiteSparse into subpackages Reply-To: bug#66129 <66129@debbugs.gnu.org> Date: Tue, 24 Jun 2025 01:28:44 +0000 retitle 66129 [PATCH 00/20] Split SuiteSparse into subpackages reassign 66129 guix-patches submitter 66129 David Elsing severity 66129 normal tag 66129 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:06:34 2023 Received: (at submit) by debbugs.gnu.org; 20 Sep 2023 22:06:35 +0000 Received: from localhost ([127.0.0.1]:60474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5L8-0005Lt-JV for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:06:34 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5L3-0005Ld-I9 for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:06:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qj5Ko-0006HE-Kc for guix-patches@gnu.org; Wed, 20 Sep 2023 18:06:14 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qj5Km-0004fY-AZ for guix-patches@gnu.org; Wed, 20 Sep 2023 18:06:14 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 09BAA240027 for ; Thu, 21 Sep 2023 00:06:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247568; bh=EkTcMOPC+x7l4cARphz4ph0ar5GV7rTHlV10vS9LfbI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=PGAbpuTwikXlqmtW7Ut0jjd2ej7HAQXQs3wircylvYaJfsJVuycuS0SidJH/azxN2 lVmVfathQFwwt+TuG9D/OUCJmnuLd2a8H+1QJzBHxcs06pbmCpOGMnn0RZgbzp4Jw/ u9ydmfChK2vguvOsO+Hj7J4yAuzajAjSe8nnumH3JoqdK1TtoRqLEo1DAPYSAKfy/L SsoUS30eBIIVU+FtjdOwvBtW9yrs7R3M2u2DDnXLSo83ZLgsDb7/OKodkue+ZsZ/m0 X7sax+Tub1oteh3WvuNY5r/jdpKv3hjQR6GAtesUXruSbrPLBnHOAaotrOcCfcYlZc R28fpFWwEGX+w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXfl3PY5z9rxF; Thu, 21 Sep 2023 00:06:07 +0200 (CEST) From: David Elsing To: guix-patches@gnu.org Subject: [PATCH 00/20] Split SuiteSparse into subpackages Date: Wed, 20 Sep 2023 22:05:16 +0000 Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=david.elsing@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This patch series adds the individual SuiteSparse packages (as in Gentoo: https://packages.gentoo.org/packages/sci-libs/suitesparse/dependencies), with autogenerated files and bundled libraries removed. The GraphBLAS library is not yet included, but AFAICT it is not required by any other package. It also makes up by far the most space of the suitesparse package, e.g. on x86_64-linux, libgraphblas.so.7.2.0 is 196 MB of the 201 MB SuiteSparse package. I think it would be best to keep the full suitesparse package until all of its dependencies are updated and the GraphBLAS package is added, as replacing them all at once would make the patch series quite large. Is the use of (@@ (guix packages) computed-origin-method) ok for creating the individual origins or is there another alternative? David Elsing (20): gnu: suitesparse: Tweak description. gnu: Add suitesparse-config. gnu: Add suitesparse-amd. gnu: Add suitesparse-btf. gnu: Add suitesparse-camd. gnu: Add suitesparse-colamd. gnu: Add suitesparse-ccolamd. gnu: Add gklib. gnu: Add metis-5.2. gnu: Add gklib-suitesparse. gnu: Add metis-suitesparse. gnu: Add suitesparse-cholmod. gnu: Add suitesparse-cxsparse. gnu: Add suitesparse-klu. gnu: Add suitesparse-ldl. gnu: Add suitesparse-rbio. gnu: Add suitesparse-mongoose. gnu: Add suitesparse-spex. gnu: Add suitesparse-spqr. gnu: Add suitesparse-umfpack. gnu/packages/maths.scm | 922 ++++++++++++++++++- gnu/packages/patches/gklib-suitesparse.patch | 65 ++ 2 files changed, 986 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/gklib-suitesparse.patch -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:08:47 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:08:47 +0000 Received: from localhost ([127.0.0.1]:60479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NH-0005PQ-4x for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:47 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5ND-0005P8-En for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 72CF9240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247707; bh=/yGXd07D3rbX+AOX2mZo2QmDOJSLbizreDv2zfXRO14=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=GdiAvJ7I94wjl68Ocf4NjFGlnYH5GN0sWxD+CVA8J/GVsiHeKdAd39f6DkTm1/HNo EfSM4uRn4/uElG93CsgEqooIljE4/FzGv6FoeWNm5xxaVpQHCzaHh+WMXsBNpSazwq ssxVZ+pyS9TuEbOQbMrDDLp6B/Py4cc4y+OnEV/7beDM3RXN4Nkvj5Au4WZysmdQhT MQBohLUUgdgTVYvdT1hyJCKjb+rYLyD1d7lf8aCo7Pz4sBBRAeQU30qiLa/ySmvHKX qmea56ASsJg3mQjZS9qzB6HGwfuVKomIhksls39bPWFK+JMnrJdHBREGzZwaCgJrso IQZZWAiJf/jWQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjQ6bZKz9rxF; Thu, 21 Sep 2023 00:08:26 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 01/20] gnu: suitesparse: Tweak description. Date: Wed, 20 Sep 2023 22:07:51 +0000 Message-ID: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse)[description]: Mention that all subpackages are included. --- gnu/packages/maths.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 6141c09886..a77928f9b6 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4960,7 +4960,10 @@ (define-public suitesparse multifrontal QR; KLU and BTF, sparse LU factorization, well-suited for circuit simulation; ordering methods (AMD, CAMD, COLAMD, and CCOLAMD); CSparse and CXSparse, a concise sparse Cholesky factorization package; and many other -packages.") +packages. + +This package contains all of the above-mentioned parts. +") ;; LGPLv2.1+: ;; AMD, CAMD, BTF, COLAMD, CCOLAMD, CSparse, CXSparse, KLU, LDL ;; GPLv2+: -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:08:54 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:08:54 +0000 Received: from localhost ([127.0.0.1]:60486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NN-0005Q7-Dl for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:54 -0400 Received: from mout02.posteo.de ([185.67.36.66]:43409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NK-0005PG-G4 for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 39A7B240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247715; bh=8T8P7H9xqc+PCIBmM2rxSuyDyJzf5o8C1M6wbKchOco=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=TIw3lIe22sb0gxzCLjDx/CYO42c5eRZZ1z3kWNIt18sALqJ45n6ALqszGgf4BxvEP 5PYncaTz+rr5vRgiGx1udtajWBde+IEHEieUdMW43HittE09v6VMHrMtvkUU3MFBvS Js//14IVhNcuHdyJLPbTOeMoWQoG9sDtzeUQJK5M/zW9v2maZ5iZ/DjsLUlDgSzDgr pRO2CErWK/Hn9icj7gPmc05S/09munY1TJzTuWeNzw732IqmQcCQkhLWzL0HJYQuLP vCxGdmje4RYXkIc/f6GzgKdTdPFTRuuEUjP7ZtZpD8VTf053sG16eUhL4yJmbat1UZ RvzNFLiJUSluA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjZ5ht5z9rxF; Thu, 21 Sep 2023 00:08:34 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 02/20] gnu: Add suitesparse-config. Date: Wed, 20 Sep 2023 22:07:52 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) The suitesparse-src variable contains the entire SuiteSparse source, from which the source for the subpackages is extracted with the suitesparse-package-src function using 'computed-origin-method'. * gnu/packages/maths.scm (suitesparse-version, suitesparse-src, suitesparse-config): New variable. --- gnu/packages/maths.scm | 88 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a77928f9b6..23c27c1746 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4888,6 +4888,94 @@ (define-public openspecfun ;; public domain software. (license (list license:expat license:public-domain)))) +;; Source for the modular SuiteSparse packages. When updating, also update the +;; (different) versions of the subpackages. +(define suitesparse-version "7.2.0") +(define suitesparse-src + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DrTimothyAldenDavis/SuiteSparse") + (commit (string-append "v" suitesparse-version)))) + (file-name (git-file-name "suitesparse" suitesparse-version)) + (sha256 + (base32 + "1draljn8i46862drc6008cnb2zjpklf74j8c34jirjazzpf53kaa")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Delete autogenerated and bundled files + (for-each delete-file (find-files "." "\\.pdf$")) + ;; ssget + (delete-file-recursively "ssget") + ;; SuiteSparse_config + (delete-file "SuiteSparse_config/SuiteSparse_config.h") + ;; CHOLMOD + (delete-file-recursively "CHOLMOD/SuiteSparse_metis") + ; GraphBLAS + (delete-file "GraphBLAS/README.md") + (delete-file "GraphBLAS/Config/GB_config.h") + (delete-file "GraphBLAS/Config/GB_prejit.c") + (delete-file-recursively "GraphBLAS/cpu_features") + (delete-file "GraphBLAS/CUDA/GB_cuda_common_jitFactory.hpp") + (delete-file "GraphBLAS/JITpackage/GB_JITpackage.c") + (delete-file-recursively "GraphBLAS/lz4/lz4.c") + (delete-file-recursively "GraphBLAS/lz4/lz4.h") + (delete-file-recursively "GraphBLAS/lz4/lz4hc.c") + (delete-file-recursively "GraphBLAS/lz4/lz4hc.h") + (delete-file "GraphBLAS/GraphBLAS/Config/GB_config.h") + (delete-file "GraphBLAS/Tcov/PreJIT/GB_prejit.c") + (delete-file-recursively "GraphBLAS/Source/FactoryKernels") + (delete-file "GraphBLAS/Source/GB_AxB__include1.h") + (delete-file "GraphBLAS/xxHash/xxhash.h") + (delete-file-recursively "GraphBLAS/zstd/zstd_subset") + ;; KLU + (delete-file "KLU/Include/klu.h") + (delete-file "KLU/Doc/klu_version.tex") + ;; LDL + (delete-file "LDL/Include/ldl.h") + (delete-file "LDL/Doc/ldl_version.tex") + ;; RBio + (delete-file "RBio/Include/RBio.h") + ;; SPEX + (delete-file "SPEX/Include/SPEX.h") + (delete-file "SPEX/Doc/SPEX_version.tex") + ;; SPQR + (delete-file "SPQR/Include/SuiteSparseQR_definitions.h") + (delete-file "SPQR/Doc/spqr_version.tex") + ;; UMFPACK + (delete-file "UMFPACK/Include/umfpack.h") + (delete-file "UMFPACK/Doc/umfpack_version.tex"))))) + +(define (suitesparse-package-src name path) + (origin + (method (@@ (guix packages) computed-origin-method)) + (file-name + (string-append name "-" suitesparse-version)) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (copy-recursively + (string-append #$suitesparse-src "/" #$path) #$output))))))) + +(define-public suitesparse-config + (package + (name "suitesparse-config") + (version suitesparse-version) + (source (suitesparse-package-src name "SuiteSparse_config")) + (build-system cmake-build-system) + (arguments (list #:tests? #f)) + (inputs (list openblas)) + (native-inputs (list pkg-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Configuration for all SuiteSparse packages") + (description "SuiteSparse is a suite of sparse matrix algorithms. This +package contains a library with common configuration options.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:08:58 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:08:58 +0000 Received: from localhost ([127.0.0.1]:60493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NS-0005Qs-2R for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:58 -0400 Received: from mout02.posteo.de ([185.67.36.66]:51617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NL-0005PN-QY for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3F5C3240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247716; bh=nRdXmEgds6g4jHWelS+aXO0YE48Quxrfnwyk4Yoo0m4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ma03w0z5XPZITtRYHk/WGjUfNJSUF6HfaWDdr2L98YCnOgcYDBtuRdWKDznC9ckD0 JER+4gtrnkODh00hEeOUei9YEl2sEyTtFi2CfpgbXHaSBbjChV8zrUH0mS0wqyG72y BLPYMrGc/63rtAEdw+a57euiuDf1Jln9eK2KLWhTuPBRTrWN58MdYOZIOMdkIhm80b Tp3PlGu+zfeOh+d0kmlPaVW80fIpBarQtcoWLNB63ffLjHcsMErdkQEbnVHFyB92bs eTY2S04dVP1Uf1LtM9j+aiYa64WEvFFj5qLXZ/uSqvpENCvwr/HpbmRh7zLFIqEdLm muEWPQfax+SJA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjb6Cp8z6ty8; Thu, 21 Sep 2023 00:08:35 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 03/20] gnu: Add suitesparse-amd. Date: Wed, 20 Sep 2023 22:07:53 +0000 Message-ID: <42245d665abf95b4a09098f550b614249ec2a887.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-amd): New variable. --- gnu/packages/maths.scm | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 23c27c1746..356e2e1d9d 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4976,6 +4976,51 @@ (define-public suitesparse-config package contains a library with common configuration options.") (license license:bsd-3))) +(define-public suitesparse-amd + (package + (name "suitesparse-amd") + (version "3.2.0") + (source (suitesparse-package-src name "AMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + ;; Required for suitesparse-umfpack + (add-after 'install 'install-internal-header + (lambda _ + (install-file "../source/Include/amd_internal.h" + (string-append #$output "/include")))) + (add-after 'install-internal-header 'install-doc + (lambda _ + (install-file "../source/Doc/AMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs (list gfortran (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse matrix ordering for Cholesky factorization") + (description "AMD is a set of routines for ordering a sparse matrix prior +to Cholesky factorization (or for LU factorization with diagonal pivoting).") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:08:58 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:08:59 +0000 Received: from localhost ([127.0.0.1]:60495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NS-0005Qv-FY for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:58 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NM-0005PR-BJ for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 15783240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247717; bh=sWme91IrZJhR6FavMe/IPPyWWXCmGmcgFBI80B+rhHc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=H9oFRpFw2xYlpnDkkj0ZdTXAL+WAyMKy0yPNUrh4/oE3+zEQKEtpsxdDZgO8hWKnL UywQCOEgmM7ySz/mqQmoUVdL12wOlcfmgIv8g9ofIshB2eY5gKp1JB8EYfAr9mDh+9 rnWwEHrr3bE45p67DacbQmHwg6EvxitBeVomRMoz0yBwVWJ4L6w44E3a9YT4ew2esi 4gx9xOx3O9UEa3B66QwI/+uc03DMV/ykVftEwEvmxuKiJh5tXU5mtPlzylaw4R4GDb botAtCS0ec/eVUlUeaY3nC0tGr/LPVWe4fOs1Za1SQ4lXXea9mmGj7HSsZP+zmwaNh lETvR+l4Yr4LA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjc4mwLz9s07; Thu, 21 Sep 2023 00:08:36 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 04/20] gnu: Add suitesparse-btf. Date: Wed, 20 Sep 2023 22:07:54 +0000 Message-ID: <25679b00e8c5380bbeb32b821829bd0f32434ff0.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-btf): New variable. --- gnu/packages/maths.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 356e2e1d9d..f2c6f136a8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5021,6 +5021,36 @@ (define-public suitesparse-amd to Cholesky factorization (or for LU factorization with diagonal pivoting).") (license license:bsd-3))) +(define-public suitesparse-btf + (package + (name "suitesparse-btf") + (version "2.2.0") + (source (suitesparse-package-src name "BTF")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for permuting matrices into block upper triangular form") + (description "BTF (Block Triangular Form) is a C library for permuting a +matrix into block upper triangular form.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:08:59 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:08:59 +0000 Received: from localhost ([127.0.0.1]:60497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NS-0005R4-Sq for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:59 -0400 Received: from mout02.posteo.de ([185.67.36.66]:51617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NM-0005PN-Np for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A6061240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247722; bh=9Lw4m3Xegpy6MKnVWzSIbI8AH9cFBnXLRDObvMzB+60=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=GM4eB3Cnliy9XrWks1jtYjtilbQqg+wVQSSkrTFVM+n934dUnCLtXfg7IQfYw3nHu VT8Kk1M+Xjeq3qCr+VxwgJs/dT4qcGvYEXtcOMa3R3PANEwh4sQnP4rR57FBF3IOdh 7WgjBY1eoq/a+t6pq4rixjejohs30oeXmqZX0piF4F2hT2EywnAYCX5/nVj9kPAFfJ VaHtCaU7NSW+OHF+qJC6craoPwbcpiLa/5v14TNo7/W6IYIG1tIU58+qYMjiierjN0 QTnoc7M7cv+iVK8BVL2GD2tkip6nMwGGPQMLq4ok0UGlvO00OFWKSbez1AU3ooJ6ar ZFXuMH56BapRQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjk1tRfz9ryn; Thu, 21 Sep 2023 00:08:42 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 11/20] gnu: Add metis-suitesparse. Date: Wed, 20 Sep 2023 22:08:01 +0000 Message-ID: <1ea9d34d76746c0de86d11b368fc0acbcccb1bfd.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (metis-suitesparse): New variable. --- gnu/packages/maths.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 668d564edc..b34ad70321 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5253,6 +5253,32 @@ (define-public gklib-suitesparse (modify-inputs (package-inputs gklib) (prepend suitesparse-config))))) +(define-public metis-suitesparse + (package/inherit metis-5.2 + (name "metis-suitesparse") + (arguments + (substitute-keyword-arguments (package-arguments metis-5.2) + ((#:phases phases) + #~(modify-phases #$phases + (add-before 'prepare-cmake 'set-idxwidth + (lambda _ + (substitute* "Makefile" + (("IDXWIDTH.*=.*") + "IDXWIDTH = \"\\#define IDXTYPEWIDTH 64\"\n")))) + (add-before 'prepare-cmake 'link-suitesparse-config + (lambda _ + (substitute* "programs/CMakeLists.txt" + (("include_directories.*" all) + (string-append + all "find_package(SuiteSparse_config REQUIRED)\n")) + (("(target_link_libraries.*)GKlib(.*)" _ start end) + (string-append + start "GKlib ${SUITESPARSE_CONFIG_LIBRARIES}" end))))))) + ((#:configure-flags _) + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) + (inputs (list suitesparse-config gklib-suitesparse)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:00 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:00 +0000 Received: from localhost ([127.0.0.1]:60500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NT-0005RD-D4 for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53301) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NN-0005PZ-45 for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D37ED240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247717; bh=i0KalSraWhf1UoJrsjbDsvkQMOti2n6qTGkINcsvlno=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=pOS6iksTH2Sr65gwZTovrLkZrsklbnc9RCL+LS9eREhcYXKotME/fjegl8TWcBKfr a6u81FbyHNWj8/T6ZUGZ2bNCxPhdcD9kYW+mm8ycaKuXCYFDlByXqBe2tg1++YSdE1 MY9jabor02bbJgpeDHVW/hie5ddmx2JsQPxchBr93qqsnCncEB7e8zuUDjoA3xwGSK RPcAL2S34/WA9FrcRYsPlRcHh97SID5/icg+A8XrsmDKOAbaHM+V+DoKPMMt5IsNOk G8sqNs9Kvo+9otu0Hs2FF64qYr9pVKQzcH9PYE6vf/MgPgKuGpifDRfZPcgl46VpaS L7LUaYXI/Ii/w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjd3Zsqz6ty8; Thu, 21 Sep 2023 00:08:37 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 05/20] gnu: Add suitesparse-camd. Date: Wed, 20 Sep 2023 22:07:55 +0000 Message-ID: <6e9b6a766a7953fafb9f01850c09783ea913331c.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-camd): New variable. --- gnu/packages/maths.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index f2c6f136a8..875e7dc391 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5051,6 +5051,48 @@ (define-public suitesparse-btf matrix into block upper triangular form.") (license license:lgpl2.1+))) +(define-public suitesparse-camd + (package + (name "suitesparse-camd") + (version "3.2.0") + (source (suitesparse-package-src name "CAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/CAMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse matrix ordering for Cholesky factorization with constraints") + (description "CAMD is a set of routines for ordering a sparse matrix prior +to Cholesky factorization (or for LU factorization with diagonal pivoting). +It is a variant of AMD which has the the option to apply constraints to the +ordering.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:00 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:01 +0000 Received: from localhost ([127.0.0.1]:60503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NU-0005RW-Bu for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NN-0005Pb-Vd for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:54 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B06F3240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247718; bh=Q3KI3R1jB4dOuoALhSy1m444NmbwPXjG21vhtbvdjWs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Asf+DIv6FJjX+Zem/LN4572bFbWJRYvlfNbizJVPaAMKocl6pmt0lmjy/lWfsndrn OGzbqwaQFFHSsi1l/qRx5tJ1DOCxaHI6dn/Z8/CC3xyjasfxlVrGyOvAZ2Z8LDYTyV tZIEA/nekkWN3CCyqI7YOoD0UPprqHv9moLnei1fBvLQlXOUeA04Z1+VLHStZRqFEU sC+mxi4Fd7jm6UYwo3K3PGhRxhkVHI335NyYslU4Mvas+9wNDIp3LTIZAfqLIQoxal reQ+rNTB+Zi1Lfrs4tmVkx26GtxgeSK/dmIPzwp9nxyfGUcrU3nOspR7uHEbUlhNk+ GhKcNJqh4K/QA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjf201tz9rxk; Thu, 21 Sep 2023 00:08:38 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 06/20] gnu: Add suitesparse-colamd. Date: Wed, 20 Sep 2023 22:07:56 +0000 Message-ID: <3ff56bbfa5ba73c25af50cbae50210421a176237.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-colamd): New variable. --- gnu/packages/maths.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 875e7dc391..9a48a1fc65 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5093,6 +5093,36 @@ (define-public suitesparse-camd ordering.") (license license:bsd-3))) +(define-public suitesparse-colamd + (package + (name "suitesparse-colamd") + (version "3.2.0") + (source (suitesparse-package-src name "COLAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Column Approximate Minimum Degree Ordering") + (description "COLAMD is library for computing a permutation vector for a +matrix with which the LU factorization becomes sparser.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:01 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:01 +0000 Received: from localhost ([127.0.0.1]:60505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NU-0005Rd-Q5 for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:01 -0400 Received: from mout02.posteo.de ([185.67.36.66]:58901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NO-0005Pc-Nr for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 766B7240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247719; bh=PJNoib38tE3pFlzR3R4/nH0uJr5D0c+qxw9lidJOQ4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=NGAAYma6Sp/UZlkKxH1RBlN3Aa2fnj8mCh5XQi5SN/VQRpWCZbzfr38uHm3Kwk1Jk uBOA0zBxcAw8jCZlPzwnN7lLwiUdnPFxF1lRSTz/QgcEdJxh3y8T2+fDfP0ObXu73B fKK1JDi/6AwSJ3d7YqOQwbs+BeJ6wGsEDzv6WaTNXZMuXbKvdNfCF4462G35d+xzda 7WqBqEtBlIlKlbgRUbhAnE4m795lIfTQl2pk7Miis/e84Nx2gR+C8mgrB3Cuo6/3aW JU4JVBwUUkca7uIlCES0ng85hYtMtO+f4Jb+7x6fmyVEVNkIEZblJgRt9vPucEpfkt N8LDyY55TAevw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjg0g83z6ty8; Thu, 21 Sep 2023 00:08:39 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 07/20] gnu: Add suitesparse-ccolamd. Date: Wed, 20 Sep 2023 22:07:57 +0000 Message-ID: <5f57cf3264823354212a4077a8c8bb71a31ef554.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-ccolamd): New variable. --- gnu/packages/maths.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 9a48a1fc65..8f27134ba8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5123,6 +5123,37 @@ (define-public suitesparse-colamd matrix with which the LU factorization becomes sparser.") (license license:bsd-3))) +(define-public suitesparse-ccolamd + (package + (name "suitesparse-ccolamd") + (version "3.2.0") + (source (suitesparse-package-src name "CCOLAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Column Approximate Minimum Degree Ordering with constraints") + (description "CCOLAMD is library for computing a permutation vector for a +matrix with which the LU factorization becomes sparser. It is a variant of +COLAMD which has the the option to apply constraints to the ordering.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:01 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:01 +0000 Received: from localhost ([127.0.0.1]:60507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NV-0005Rl-5W for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:01 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NP-0005Pe-S6 for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4AD99240027 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247720; bh=Y7uQN5mkLrPhI14bbyRzSQpQwepsP2fjs7im04EyVnM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Pf9I8oZ71aaRhNBEC4/4zivzH6l2ylMshnM1Nu/lv8QSIYE8y4GRJF/p/J/EKLB/M 0l5/CPV93qCOcV+L63msgSkb4wqXiZbZdrCvbNunNNon2uPi0js3g7Igi86xFzC8Du QNy5yfh0j4UTKT3R7JXBzv2TSjdfQkj9fyhrK5VOLI+xallKNuc8mxuvRBNhJzUazM LU0GFsSW6HV1SadCNkzv+PWLxa5PTATOQni4MLyx9WW0DVua2nrAewK3Sh6DSjhAIw +pNBxcIhKBS6T+/qJZEYhuRdd53SMAssW1cBLPQ/L22geujNx2BqZrFuTBKLgb/WMC PB01Iay2I2+HA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjg68TYz9rxk; Thu, 21 Sep 2023 00:08:39 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 08/20] gnu: Add gklib. Date: Wed, 20 Sep 2023 22:07:58 +0000 Message-ID: <6c9d1fedc03930be77e82c1c3317ed2160f8e72b.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (gklib): New variable. --- gnu/packages/maths.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8f27134ba8..8e17629caa 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4193,6 +4193,32 @@ (define-public scotch-shared (define-public pt-scotch-shared (deprecated-package "pt-scotch-shared" pt-scotch)) +(define-public gklib + (let ((commit "8bd6bad750b2b0d90800c632cf18e8ee93ad72d7") + (revision "1")) + (package + (name "gklib") + (version (git-version "5.1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/GKlib") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "08k4zzyd7zsisdhfmnwz7zb9w3pzpgagyjq52mwk8i6sqajdxsdn")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"))) + (home-page "https://github.com/KarypisLab/GKlib") + (synopsis "Helper library for METIS") + (description + "GKlib is a library of various helper routines and frameworks used by +software from KarypisLab, such as METIS.") + (license license:asl2.0)))) (define-public metis (package -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:02 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:02 +0000 Received: from localhost ([127.0.0.1]:60509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NV-0005Rs-GT for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:01 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NQ-0005Pg-B9 for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 11220240027 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247721; bh=xfXd52c1QFMjuvobWLG4AK6XQQ2uCwQt5RXtkeC7kfc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=gdxtn4d+JwrXM87KC+BJbFh161Twjl382agqy/gRUOwIeNH4k1f+uXLgI4JGdkRa4 vNZqrBxFGkyR9rFRe3ybxu3BWDENnSJRS5x4gLB7Q4y/0AtQasOpVW9uV+bMhbi0jv 4dIraQvENQDRdmMuQgBSe/ILNSkgDxj2hQ0xyYgxkOtf+VUTnYB6QyVwzEXNHfGU9E UzCTDdqQVOilY4muDmCjmdcb1CstTGFdpWROGS2htDXofMXxV+b8ZvszRRamUEiEiC 2zuBjpEn4G5pEDDNEWs8DnnxSRs/oOR5UpEieGnHtEHMInXEQOzxudV0dHpjkKEGBd R5LAd0MnoFc7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjh4srdz6v2Q; Thu, 21 Sep 2023 00:08:40 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 09/20] gnu: Add metis-5.2. Date: Wed, 20 Sep 2023 22:07:59 +0000 Message-ID: <4ad2b7c14325639a4b400ed6a230fb3ee2f9d158.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (metis-5.2): New variable. --- gnu/packages/maths.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8e17629caa..3150bac47f 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4220,6 +4220,7 @@ (define-public gklib software from KarypisLab, such as METIS.") (license license:asl2.0)))) +;; XXX: Remove once the full SuiteSparse package is replaced. (define-public metis (package (name "metis") @@ -4253,6 +4254,53 @@ (define-public metis schemes.") (license license:asl2.0))) ;As of version 5.0.3 +(define-public metis-5.2 + (package + (name "metis") + (version "5.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/METIS") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19vi1wsi2gp2m5vb715yfnzd2g7brm4r40qxg65ysrzgl13lpmvr")) + (snippet + #~(delete-file "manual/manual.pdf")))) + (build-system cmake-build-system) + (inputs (list gklib openblas)) + (arguments + (list + #:tests? #f ; Tests are not automatic + #:configure-flags + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib)) + #:phases + #~(modify-phases %standard-phases + ;; The original Makefile copies some files and invokes CMake. + (add-before 'configure 'prepare-cmake + (lambda _ + (substitute* "Makefile" + (("config: distclean") "config:") + (("BUILDDIR =.*") + "BUILDDIR = .\n") + ((".*cmake.*") "")) + (substitute* "CMakeLists.txt" + (("build/") "../source/")) + (invoke "make" "config")))))) + (home-page "http://glaros.dtc.umn.edu/gkhome/metis/metis/overview") + (synopsis "Graph partitioning and fill-reducing matrix ordering library") + (description + "METIS is a set of serial programs for partitioning graphs, partitioning +finite element meshes, and producing fill-reducing orderings for sparse +matrices. The algorithms implemented in METIS are based on the multilevel +recursive-bisection, multilevel k-way, and multi-constraint partitioning +schemes.") + (license license:asl2.0))) + (define-public p4est (package (name "p4est") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:03 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:03 +0000 Received: from localhost ([127.0.0.1]:60511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NV-0005S5-VN for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:02 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NR-0005Pi-5e for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:57 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DC992240027 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247721; bh=nylsSrxQ/rut+G0abrH1PDDHWzAoXwEsOTj+nVeysrU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=SCYcSv+W5UmW29Ti5sOqt1/ZO237H+hVEV+C+EfEmXuTJNE9KzPokZcf5UE+JSqo2 L0IcGTYMsCHyjgRn+WU6TzIHO7nXvNySDIMV2Rj17j14fxF4n/zfT8q3+vCKs/nl2x E74BJxaKWrn07zy3+RWGsjwb5QS0gQ+16c8VapsIfWqChjfiqaM2MQBLYovL7nitSu St6jDvM8k5XHcGcLfglUPHwLUKUGQ8huz/Baa/x4LZLS1wAkGODQ2HoSIm2nULnoxj YXIHrK+BGELgcZ9Mkp4EcHX0X1VzlP2mccgitfgApaDS+59aYa4qWsDeGicpO5Z3OT BQgje0LnG/Gmg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjj3FkRz9ryn; Thu, 21 Sep 2023 00:08:41 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 10/20] gnu: Add gklib-suitesparse. Date: Wed, 20 Sep 2023 22:08:00 +0000 Message-ID: <28bb0d1f9a1530497514d57a15aabeb1990536a8.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (gklib-suitesparse): New variable. --- gnu/packages/maths.scm | 25 ++++++++ gnu/packages/patches/gklib-suitesparse.patch | 65 ++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 gnu/packages/patches/gklib-suitesparse.patch diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3150bac47f..668d564edc 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5228,6 +5228,31 @@ (define-public suitesparse-ccolamd COLAMD which has the the option to apply constraints to the ordering.") (license license:bsd-3))) +(define-public gklib-suitesparse + (package/inherit gklib + (name "gklib-suitesparse") + (source (origin + (inherit (package-source gklib)) + (patches (cons + (search-patch + "gklib-suitesparse.patch") + (origin-patches (package-source gklib)))))) + (arguments + (substitute-keyword-arguments (package-arguments gklib) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'patch-cmake + (lambda _ + (substitute* "CMakeLists.txt" + (("add_library\\(GKlib.*" all) + (string-append + all + "target_link_libraries(GKlib PUBLIC" + " ${SUITESPARSE_CONFIG_LIBRARIES} m)\n"))))))))) + (inputs + (modify-inputs (package-inputs gklib) + (prepend suitesparse-config))))) + (define-public suitesparse (package (name "suitesparse") diff --git a/gnu/packages/patches/gklib-suitesparse.patch b/gnu/packages/patches/gklib-suitesparse.patch new file mode 100644 index 0000000000..8b6c708b6a --- /dev/null +++ b/gnu/packages/patches/gklib-suitesparse.patch @@ -0,0 +1,65 @@ +This patch contains the relevant changes to GKlib made in SuiteSparse +(CHOLMOD) for the version 7.2.0 +(https://github.com/DrTimothyAldenDavis/SuiteSparse/commit/8a7641cdb4809533c681417e94f98058c07c5da2). +The disabling of signal handling when MATLAB_MEX_FILE is defined is omitted. + +diff -ur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,6 +3,8 @@ + + option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF) + ++find_package ( SuiteSparse_config 7.1.0 REQUIRED ) ++ + get_filename_component(abs "." ABSOLUTE) + set(GKLIB_PATH ${abs}) + unset(abs) +diff -ur a/GKlib.h b/GKlib.h +--- a/GKlib.h ++++ b/GKlib.h +@@ -59,6 +59,24 @@ + #include + #endif + ++/* -------------------------------------------------------------------------- */ ++/* Added for incorporation into SuiteSparse. ++ Tim Davis, Oct 31, 2022, Texas A&M University. */ ++#include "SuiteSparse_config.h" ++#define malloc SuiteSparse_config_malloc ++#define calloc SuiteSparse_config_calloc ++#define realloc SuiteSparse_config_realloc ++#define free(p) \ ++{ \ ++ if ((p) != NULL) \ ++ { \ ++ SuiteSparse_config_free (p) ; \ ++ (p) = NULL ; \ ++ } \ ++} ++ ++/* -------------------------------------------------------------------------- */ ++ + + + +diff -ur a/memory.c b/memory.c +--- a/memory.c ++++ b/memory.c +@@ -108,6 +108,8 @@ + /*************************************************************************/ + int gk_malloc_init() + { ++ gkmcore = NULL; ++#if 0 + if (gkmcore == NULL) + gkmcore = gk_gkmcoreCreate(); + +@@ -115,6 +117,7 @@ + return 0; + + gk_gkmcorePush(gkmcore); ++#endif + + return 1; + } -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:30 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:30 +0000 Received: from localhost ([127.0.0.1]:60531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Ny-0005Uj-0i for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:30 -0400 Received: from mout01.posteo.de ([185.67.36.65]:53839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NT-0005QL-Ju for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 55D78240027 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247724; bh=d03SBBVzZCNzW8AWhWJl8T0TfkE3GDjtQ8XinfHjlHM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=fUt5e4jwrdqeYaL9wWFVTx6f1YNBjRFtkEQIOfXbdjBiEhQ/VQW4QmGm6AdD6hjoq iDVqy/IU9iYzz8YlH+ttmZjJ83mOfVnnzqYPNOnjD5OdqY4gJT4mcTIJRJQfYOKq35 dzE1HWdh8BdtIVRWjafho1R0sPKzFFidQIGeJzJ7Me/NsuKZvnW9M8aSe8Lo9tNl6N hGBhVDDSKWH/5MIzrnkJSQe5zBdJakbAcExUFMZdt65cq8H8QfIIPvsU0RwDXmP/E2 i4oD6qzwBDRY7bkM+JJdArRyrhI6PYK6QJA6IdNSsrwPzYsSl3S3zZKSDN39Oo2MTo RKM8yvQwcok9w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjl6Y2wz9rxk; Thu, 21 Sep 2023 00:08:43 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 13/20] gnu: Add suitesparse-cxsparse. Date: Wed, 20 Sep 2023 22:08:03 +0000 Message-ID: <88ac0a8ff23aef774b68ebf1c43d55dafd651be8.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-cxsparse): New variable. --- gnu/packages/maths.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1dfd12af76..57e3f82fa8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5361,6 +5361,37 @@ (define-public suitesparse-cholmod and other related operations.") (license (list license:gpl2+ license:lgpl2.1+)))) +(define-public suitesparse-cxsparse + (package + (name "suitesparse-cxsparse") + (version "4.2.0") + (source (suitesparse-package-src name "CXSparse")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Doc/lesser.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Concise eXtended Sparse Matrix Package") + (description "CXSparse is a collection of sparse matrix algorithms for +direct methods on both real and complex matrices.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:31 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:31 +0000 Received: from localhost ([127.0.0.1]:60533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Ny-0005Ul-Iv for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:30 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NV-0005Qd-Tk for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DCFCA240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247725; bh=5jsdvB+Fab5g0JPigCTK3NieEboIwA2Uv9hRgOvD3K4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=RwsuJSMODUu2UPYHRRu4Uu+PT6xv1UOPUNcQ6E2jp8BRNmUldids+dcAdcEu7jlY/ p89NdSnzCFILo+LQW3djR1ryudPgMBKB5swbaZwblcuYI+CDquzUV8AduydYk1XXPJ RyFfndmgM3a2jl7EjpfMTK8wbWDe+54FX7e+Gzk9O1mJYll2BWR34uP/NwJ4UoFYSu TkDVUN+R2mLcN+umasPx1UC6n5eItV1syebFuf+tGZGEEowJLVOLua6RRyLn2OXCcP tq3Uqf8EWgqasYJpD2vFUX5JEUIHh5P9ilHRJvva7S9nNLVePIwaizE6jISV6wgMFs fAqmGIDEBlHqw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjn3mShz6trs; Thu, 21 Sep 2023 00:08:45 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 15/20] gnu: Add suitesparse-ldl. Date: Wed, 20 Sep 2023 22:08:05 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-ldl): New variable. --- gnu/packages/maths.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index cfa631b975..b317b1b18a 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5453,6 +5453,57 @@ (define-public suitesparse-klu for real and complex matrices.") (license license:lgpl2.1+))) +(define-public suitesparse-ldl + (package + (name "suitesparse-ldl") + (version "3.2.0") + (source (suitesparse-package-src name "LDL")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "../source/Doc/Makefile" + (("\\.\\./\\.\\./BTF/Include/btf.h") + (string-append #$suitesparse-btf "/include/btf.h"))) + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/ldl_userguide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list suitesparse-amd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "LDL' factorization method for sparse, symmetric matrices") + (description "This package contains a set of routines for computing the +LDL' factorization of sparse, symmetric matrices. Its focus lies on concise +code.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:31 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:31 +0000 Received: from localhost ([127.0.0.1]:60535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Nz-0005Ut-0r for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:31 -0400 Received: from mout01.posteo.de ([185.67.36.65]:45287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NV-0005Qe-Tl for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2640D240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247725; bh=+6LY2D/qBOfYYUq7nF5MG6Q7wxGmFi4MDkiR25sl+08=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=RUF2nmgb5/qH8h76+va3plM2VKCToluFHVp1e2CBcnJYRdTjmc3CrJBRr+ksxUxkN 4QCAJxTaSSh40yhrPUnJ491Yxxu7dHedfMsez5+fN7VakbVCPheRD7L7K4ix5yVZHs zk4gsIKtLUZSaKvOVxG0R6Gn4/RIuw7yt3Gx7aEDwErf/AbSC/Zm7VE6moEZ3j6uQo ipVRsTYXcw6hJxYdWYx4Pw8y3mUqgOjRzDHFhuIvZG05Cv4UIaPh/Q1SpLa+HfR+Bu iHwnRnn3mORVYfeRg+gsTB8xik8MkUVCX+eVnk4dMxAV2NfOtlNhvAeGJUtbtMI+hh 0G/cYC50ocspA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjm5M5nz6v3j; Thu, 21 Sep 2023 00:08:44 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 14/20] gnu: Add suitesparse-klu. Date: Wed, 20 Sep 2023 22:08:04 +0000 Message-ID: <6a2c9a11789ab3a57d043d017265aca9b079c0ad.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-klu): New variable. --- gnu/packages/maths.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 57e3f82fa8..cfa631b975 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5392,6 +5392,67 @@ (define-public suitesparse-cxsparse direct methods on both real and complex matrices.") (license license:lgpl2.1+))) +(define-public suitesparse-klu + (package + (name "suitesparse-klu") + (version "2.2.0") + (source + (suitesparse-package-src name "KLU")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-btf + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "../source/Doc/Makefile" + (("\\.\\./\\.\\./BTF/Include/btf.h") + (string-append #$suitesparse-btf "/include/btf.h"))) + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/KLU_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list suitesparse-amd + suitesparse-btf + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems with a LU factorization") + (description "KLU is a method for computing the LU factorization of sparse +for real and complex matrices.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:31 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:31 +0000 Received: from localhost ([127.0.0.1]:60537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Nz-0005V0-FQ for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:31 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NW-0005Qk-8e for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9C292240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247726; bh=b+LhzvGHI7CRM5YsQdgjXKX35QR72iQOIK88ha6Syig=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=pON4frBcjEoTKbOq0sMFucg4ETuTft3zyCsIC8n0aCbKWu9PiFWy6nuPgmRIqvGhe qVMHymFcISU5fvhIz8xXMq9aFP3PYFZUmkYqvaodNgE7dazl8o+p+38KdyYlNMjDXU 7G1NuLKfQtfKeJSz/v48C2zPPRgyprgqH2x1/5kYXtYAlIRkRFEOlW7KvVQzrE0EnL Dj2D9U9ZTp2uiCmG0Lm1k3e5Uv0HrmlpoPsLmgzaGwthHgm2CXlZ+nVtuykTUBDCbv G/LYfb1GhdbJ1+MC6XhO2ERFVqrne97e7fVKJNOio/B6pGbxqTfQu+Vtf5373qh6ne llGDEeF2PUKZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjp2CnYz6trs; Thu, 21 Sep 2023 00:08:46 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 16/20] gnu: Add suitesparse-rbio. Date: Wed, 20 Sep 2023 22:08:06 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-rbio): New variable. --- gnu/packages/maths.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b317b1b18a..84ad02b3df 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5504,6 +5504,41 @@ (define-public suitesparse-ldl code.") (license license:lgpl2.1+))) +(define-public suitesparse-rbio + (package + (name "suitesparse-rbio") + (version "4.2.0") + (source (suitesparse-package-src name "RBio")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Doc/gpl.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for the Rutherford/Boeing sparse matrix format") + (description "This package provides the C library of RBio. It can be used +for reading and writing sparse matrices in the Rutherford/Boeing format.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:32 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:32 +0000 Received: from localhost ([127.0.0.1]:60539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Nz-0005V7-SS for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:32 -0400 Received: from mout02.posteo.de ([185.67.36.66]:58953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NW-0005Ql-NH for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:04 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 70652240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247727; bh=811gxcmvEbG5QarPTEqEw+vTk/gWeP3XqLbSkvszhrs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=qwdS34kgwv9Q6PlMl3hy1jW9+/nYm8/tr9Kos3UH4S6f2vFu/7UuYjHOi2iKwURkn ntNmUu44KpSE4rMCK0hrwRuyqCaH/9Iy0OcQp0S76tYBXY7v17a3eRCompgz96N5+3 Xlb4T8ND3e1MuBdM3s+HegWp5PcOsjmMYWRdXA8pbZIrm8sjwZuPA2R/8eoK8AusX2 YLqjnOS+Yft9jDaNxpLhqqtzGADwz6W6J4S0SoQ9Z6/1KQL8S6CRWfExhi1QjT2Vo/ nbgpArfrg/ZNOhnZI1Z+oslCobH7Q5l6lXmHjoAx7r4MzSQ+GPV+nHmiV/e/baPwN9 wIRfPU+QiNAgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjq0qgfz6ty8; Thu, 21 Sep 2023 00:08:47 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 17/20] gnu: Add suitesparse-mongoose. Date: Wed, 20 Sep 2023 22:08:07 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-mongoose): New variable. --- gnu/packages/maths.scm | 72 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 84ad02b3df..e958e6521b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5539,6 +5539,78 @@ (define-public suitesparse-rbio for reading and writing sparse matrices in the Rutherford/Boeing format.") (license license:gpl2+))) +(define-public suitesparse-mongoose + (package + (name "suitesparse-mongoose") + (version "3.2.0") + (source (suitesparse-package-src name "Mongoose")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + ;; XeLaTeX fails with .eps graphics + (with-directory-excursion "../source/Doc" + (for-each + (lambda (name) + (invoke "epstopdf" name)) + (find-files "Figures" "\\.eps$")) + (substitute* "Mongoose_UserGuide.tex" + (("\\.eps") ".pdf")) + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/Mongoose_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs + (list texlive-epstopdf + (texlive-updmap.cfg + (list texlive-algorithmicx + texlive-booktabs + texlive-lastpage + texlive-multirow + texlive-pgf + texlive-caption + texlive-etoolbox + texlive-csquotes + texlive-fancybox + texlive-enumitem + texlive-microtype + texlive-cancel + texlive-sourcecodepro + texlive-xkeyval + texlive-fontspec + texlive-wasy + texlive-wasysym + texlive-float + texlive-tcolorbox + texlive-environ + texlive-xcolor + texlive-xetex + texlive-listings)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Graph partitioning library") + (description "Mongoose is a library for graph partitioning by computing +edge cuts using a coarsening and refinement framework.") + (license license:gpl3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:38 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:38 +0000 Received: from localhost ([127.0.0.1]:60541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5O0-0005VF-9X for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:38 -0400 Received: from mout02.posteo.de ([185.67.36.66]:50277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NX-0005Qt-GJ for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:04 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3ADF6240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247728; bh=25ulTnYX1xPmSpGZL+DojZajwH/eVEY4mEBGNmnnxJc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=iPF5EMr9d+Keu9kO3N5xBhklpduL+/OrlLYJaJNiQH2r5dJFcx3O/dhkUDSsiIPV2 NnXv7OFtq7R5GmK849g8/GjHDF8TyXbuK+7SB877QRmffrnvtL+XoFYAnIzH7LzYjz pWM7IANpdp1JevBhZqDr23wSdo8K2UJwFBl5fwuCZTfKFEe2RsqO1Jc2dqaEslne1s YlRCSBTLrn8aErF7bsvgoIZnFXfWj0xNs8KceXZ2ZXjlk697T9yqdzCUf9qW+AsenH IGi2Cr5N/35XjT9ll42yIG+m9t+NSoLKNXPcDIFLLTB4RWxnCW373T55ukK26rZ8Ky cV2W/T2lr4cLg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjq6Qrfz6trs; Thu, 21 Sep 2023 00:08:47 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 18/20] gnu: Add suitesparse-spex. Date: Wed, 20 Sep 2023 22:08:08 +0000 Message-ID: <3777ca6f78db8169cf1df75d6b01888e7bc3eff9.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-spex): New variable. --- gnu/packages/maths.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index e958e6521b..0c9b983ab0 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5611,6 +5611,73 @@ (define-public suitesparse-mongoose edge cuts using a coarsening and refinement framework.") (license license:gpl3))) +(define-public suitesparse-spex + (package + (name "suitesparse-spex") + (version "2.2.0") + (source (suitesparse-package-src name "SPEX")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/SPEX_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list gmp + mpfr + suitesparse-amd + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-paralist + texlive-comment + texlive-psfrag + texlive-soul + texlive-multirow + texlive-algorithms + texlive-float + texlive-algorithmicx + texlive-cprotect + texlive-bigfoot + texlive-caption + texlive-listings + texlive-xcolor + texlive-framed + texlive-mdframed + texlive-etoolbox + texlive-zref + texlive-needspace)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Package for SParse EXact algebra") + (description "SPEX is a set of routines for sparse exact linear algebra. +It contains the SPEX Left LU library for computing a sparse exact left-looking +LU factorization for solving unsymmetric sparse linear systems.") + ;; Dual licensed. + (license (list license:lgpl3+ license:gpl2+)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:38 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:38 +0000 Received: from localhost ([127.0.0.1]:60543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5O6-0005VR-5U for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:38 -0400 Received: from mout02.posteo.de ([185.67.36.66]:58583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NY-0005RA-9G for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0395A240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247729; bh=hm/pKKYHUTtOxRd8xV0Ui2fz4t01Eho5xcS2GEaRxNs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=dAMhfftEARj3KxVSFePVD/7/2dSoWKhvFghAeDoASiW6vvHdn9tIfeWC9U9EwSji8 5/GiK8lcquq4SCvKyOsRUb3zK5ZB54uhuSZxPS+fabqUGrrsyBnQKqDaLBqxT6TLlA ngxRhqCH1J0N9kaON1VGFXCZjlycfWwoeFKbzhOmeG2MWypsnwcV2KuYhibC/RIeHY FFPn3ZohWbVKm0Sigl3Qn3jBCHxxluMC9zGv0uiY0xerSNAGRgbf9FU5TISeHqeSaA vaSrfzhBqRCPFMU5aoNwY2pE4FHUpHeTk5VohFxxd3MjhUvpQ0vwCcIrHaCh7hAIxj dmVqQo5f2GTpA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjr4lX5z6trs; Thu, 21 Sep 2023 00:08:48 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 19/20] gnu: Add suitesparse-spqr. Date: Wed, 20 Sep 2023 22:08:09 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-spqr): New variable. --- gnu/packages/maths.scm | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 0c9b983ab0..f45ff900cf 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5678,6 +5678,65 @@ (define-public suitesparse-spex ;; Dual licensed. (license (list license:lgpl3+ license:gpl2+)))) +(define-public suitesparse-spqr + (package + (name "suitesparse-spqr") + (version "4.2.0") + (source (suitesparse-package-src name "SPQR")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/spqr_user_guide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-epsf)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse QR factorization method") + (description "The SPQR (SuiteSparseQR) package provides sparse QR +factorization based on the multifrontal method, using BLAS for the frontal +matrices.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:39 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:39 +0000 Received: from localhost ([127.0.0.1]:60545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5O6-0005VY-JB for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:38 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NS-0005Q8-Pc for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:08:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7E5C8240027 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247723; bh=f56Z6aw3lONGgsk6WBehQaOOQfKFJJs9mkhFiUEJT6A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Igo7+uiIS4oZKZCeQKGMBxM43YqWdi3hRpFc0p9WQzUGDo1mBpj+kHc6/XYERgrd6 g6nUvc7eDzvavLRgKU+8HrPKiCOvomqARmlwyv00iTRn5fO8wkf348qm9wc2PIRqs5 HGGaRSy+nVNZTT3h135EbUEC8a/1lLUx8pDdK0fRd3iprbUBBs5S149a8PERNkXMpT nhx781fqpHYCr9251YdCR4+yeDNh3VLCPn/h3adD8DWLQg9Y7orxML6lnEl4vXrusg AOfPGWtU9N3x7D5Fvid8JV18GWQk6VtmykXNKCwkPQjd9Ns4zGjlqV2DP8kVmMKtXe LeUjrCe5J69Zg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjl0htrz9ryn; Thu, 21 Sep 2023 00:08:43 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 12/20] gnu: Add suitesparse-cholmod. Date: Wed, 20 Sep 2023 22:08:02 +0000 Message-ID: <7e45de00421cbe7b85c84000df7d8020d03563d6.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-cholmod): New variable. --- gnu/packages/maths.scm | 82 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b34ad70321..1dfd12af76 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5279,6 +5279,88 @@ (define-public metis-suitesparse (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) (inputs (list suitesparse-config gklib-suitesparse)))) +(define-public suitesparse-cholmod + (package + (name "suitesparse-cholmod") + (version "4.2.0") + (source (suitesparse-package-src name "CHOLMOD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n")) + (("add_subdirectory.*GPU.*") "\n") + ((".*cmake_modules/FindCHOLMOD_CUDA.cmake.*") "\n")))) + (add-after 'unpack 'use-external-metis + (lambda _ + (let ((port (open-file "CMakeLists.txt" "a"))) + (display + (string-append + "find_library(METIS_LIBRARY NAME metis PATHS ENV LIBRARY_PATH) +get_filename_component(METIS_LIBRARY ${METIS_LIBRARY} REALPATH) +find_library(GKLIB_LIBRARY NAME GKlib PATHS ENV LIBRARY_PATH) +get_filename_component(GKLIB_LIBRARY ${GKLIB_LIBRARY} REALPATH) +target_link_libraries(CHOLMOD PRIVATE ${METIS_LIBRARY} ${GKLIB_LIBRARY}) +target_link_libraries(CHOLMOD_static PRIVATE ${METIS_LIBRARY} ${GKLIB_LIBRARY})") + port) + (close-port port)) + (delete-file "Partition/cholmod_metis_wrapper.c") + (delete-file "Partition/cholmod_metis_wrapper.h") + (substitute* "Partition/cholmod_metis.c" + (("#include \"cholmod_metis_wrapper\\.h\"") "") + (("#include \"SuiteSparse_metis/include/metis.h\"") + "#include ") + (("SuiteSparse_metis_METIS") "METIS")))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/CHOLMOD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Core/lesser.txt" out) + (install-file "../source/MatrixOps/gpl.txt" out))))))) + (inputs + (list gklib-suitesparse + metis-suitesparse + openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-colamd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for solving sparse symmetric positive definite linear +equations") + (description "CHOLMOD is a set of routins for factorizing sparse symmetrix +positive definite matrices, updating/downdating sparse Cholesky factorizations +and other related operations.") + (license (list license:gpl2+ license:lgpl2.1+)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 20 18:09:39 2023 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:39 +0000 Received: from localhost ([127.0.0.1]:60547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5O7-0005Vh-0W for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:39 -0400 Received: from mout02.posteo.de ([185.67.36.66]:49095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NZ-0005RO-1s for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C0AF7240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247729; bh=/EY3tYxJ5N/9QyEr5mHxtHfvla6DdaavTsMoO5C1FfI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=TyvLhiiQjtSzJUGnTkA1CXMMwbDbO6TMqt1aTiBV7PfsRWT6Ly9t2MyjNHueCKXuE JgxlyPPqMyFl1oVVDB1dyLDGZHnE5ZDoSgEk5OiyMjV4iJZ0QWE5+ys0j1SMPZpb2m a6TohXDnD0Brf0HFh9J16EKeeJod3pBJz6crVBWBOsaGYWjcj+uQioqtSpbqZIiHiN AotnE+GuQUHK9EHdqdkbZiq6BrBgCYzCev/Uf71ry/Y0weFMjypGrnETIKUeeNMcV7 331ImtIpGZ0k8WDsenr7eMUFmzyt2l1FFp43EAXd2rwGNxsnr4kdm9lIJ3E+//NN68 eXfp2Jzl0y9cw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjs3Gj7z6trs; Thu, 21 Sep 2023 00:08:49 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH 20/20] gnu: Add suitesparse-umfpack. Date: Wed, 20 Sep 2023 22:08:10 +0000 Message-ID: <8e74bc2facc6f585b5a61d29a2ddc3cd6384fefa.1695246169.git.david.elsing@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-umfpack): New variable. --- gnu/packages/maths.scm | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index f45ff900cf..eeff1b5ece 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5737,6 +5737,74 @@ (define-public suitesparse-spqr matrices.") (license license:gpl2+))) +(define-public suitesparse-umfpack + (package + (name "suitesparse-umfpack") + (version "6.2.0") + (source (suitesparse-package-src name "UMFPACK")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../source/Doc/UMFPACK_UserGuide.pdf" outdir) + (install-file "../source/Doc/UMFPACK_QuickStart.pdf" outdir)))) + (replace 'install-license-files + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../source/Doc/License.txt" outdir) + (install-file "../source/Doc/gpl.txt" outdir))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-etoolbox + texlive-framed + texlive-mdframed + texlive-needspace + texlive-xcolor + texlive-zref)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems via LU factorization") + (description "UMFPACK is a set of routines for solving unsymmetric sparse +linear systems using the Unsymmetric MultiFrontal method and direct sparse LU +factorization.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:30 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:31 +0000 Received: from localhost ([127.0.0.1]:33027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjK-0004pu-AQ for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:30 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjH-0004pY-Dx for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 58593240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302891; bh=/yGXd07D3rbX+AOX2mZo2QmDOJSLbizreDv2zfXRO14=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Qb/AvXTQW2YE3+7iECaCmjH46RW+lSmQ1WdmEbm1nDtWMimMLj+V1PYPSj/RnrUP4 ABU+6wq0lGgxeUmlPpWMkFuENtUyiIq7SCBN4IHtyH6tsigrtCnkRqkbr5XNFPH4p/ O7mWkmj5AMpMnpJ49CXWpdAs4uAyLYUNyCjEmnmfiLlwhki8MDDx0f7ARC3I8Xy9s1 puEhUDgLcWKPvxSsgtGbBzAbbn7zRGd6ZzzlGv94w43XIYoaONTSy/UmxWH6vVICwa l10a1RBuP8yF7xZ/qkRFcRxEom+pgNBhGZWGoM1tcZfxkFE1UAG/s3U1MuFocLAoFR F6+twdwARqyEg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6f6Zgfz6twF; Thu, 21 Sep 2023 15:28:10 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 01/20] gnu: suitesparse: Tweak description. Date: Thu, 21 Sep 2023 13:27:36 +0000 Message-ID: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse)[description]: Mention that all subpackages are included. --- gnu/packages/maths.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 6141c09886..a77928f9b6 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4960,7 +4960,10 @@ (define-public suitesparse multifrontal QR; KLU and BTF, sparse LU factorization, well-suited for circuit simulation; ordering methods (AMD, CAMD, COLAMD, and CCOLAMD); CSparse and CXSparse, a concise sparse Cholesky factorization package; and many other -packages.") +packages. + +This package contains all of the above-mentioned parts. +") ;; LGPLv2.1+: ;; AMD, CAMD, BTF, COLAMD, CCOLAMD, CSparse, CXSparse, KLU, LDL ;; GPLv2+: -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:39 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:39 +0000 Received: from localhost ([127.0.0.1]:33041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjR-0004r7-Rm for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:39 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjJ-0004pb-Pc for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E043D240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302893; bh=8T8P7H9xqc+PCIBmM2rxSuyDyJzf5o8C1M6wbKchOco=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=M6Jk9KKqxzD+W5E0pu3YimAbgjJbEq3BhyJSlocPAJ+WbsKTlxCvfO7gADcTzgaNa 6xdKpD50QvFrG6O9wSwV3NCbXy1J1zoAX69Z6lPmsknp7rwdHV1UXvOVnUG19DnCGM hijYmVSxOyc1rscMSFEpy+LrdAqdpYgDQhqo/ATDntHyBq+tunf1boaNtONk3e/DeH hrljnIc9Wx1KgagEevJX+rclSjua2UwvftFAIyy5ZG8gDOiTL4Zsxq2PTHTjqlBuDm nKxwz9TH28iGbgtyt/4sqM7wPrCodgsnqOcPpJwauGg3JI48Nob7zyZ4XnBlG4t10k 2Ddz+PA2rd0rA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6j2bvDz9s0Q; Thu, 21 Sep 2023 15:28:13 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 02/20] gnu: Add suitesparse-config. Date: Thu, 21 Sep 2023 13:27:37 +0000 Message-ID: In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) The suitesparse-src variable contains the entire SuiteSparse source, from which the source for the subpackages is extracted with the suitesparse-package-src function using 'computed-origin-method'. * gnu/packages/maths.scm (suitesparse-version, suitesparse-src, suitesparse-config): New variable. --- gnu/packages/maths.scm | 88 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a77928f9b6..23c27c1746 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4888,6 +4888,94 @@ (define-public openspecfun ;; public domain software. (license (list license:expat license:public-domain)))) +;; Source for the modular SuiteSparse packages. When updating, also update the +;; (different) versions of the subpackages. +(define suitesparse-version "7.2.0") +(define suitesparse-src + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DrTimothyAldenDavis/SuiteSparse") + (commit (string-append "v" suitesparse-version)))) + (file-name (git-file-name "suitesparse" suitesparse-version)) + (sha256 + (base32 + "1draljn8i46862drc6008cnb2zjpklf74j8c34jirjazzpf53kaa")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Delete autogenerated and bundled files + (for-each delete-file (find-files "." "\\.pdf$")) + ;; ssget + (delete-file-recursively "ssget") + ;; SuiteSparse_config + (delete-file "SuiteSparse_config/SuiteSparse_config.h") + ;; CHOLMOD + (delete-file-recursively "CHOLMOD/SuiteSparse_metis") + ; GraphBLAS + (delete-file "GraphBLAS/README.md") + (delete-file "GraphBLAS/Config/GB_config.h") + (delete-file "GraphBLAS/Config/GB_prejit.c") + (delete-file-recursively "GraphBLAS/cpu_features") + (delete-file "GraphBLAS/CUDA/GB_cuda_common_jitFactory.hpp") + (delete-file "GraphBLAS/JITpackage/GB_JITpackage.c") + (delete-file-recursively "GraphBLAS/lz4/lz4.c") + (delete-file-recursively "GraphBLAS/lz4/lz4.h") + (delete-file-recursively "GraphBLAS/lz4/lz4hc.c") + (delete-file-recursively "GraphBLAS/lz4/lz4hc.h") + (delete-file "GraphBLAS/GraphBLAS/Config/GB_config.h") + (delete-file "GraphBLAS/Tcov/PreJIT/GB_prejit.c") + (delete-file-recursively "GraphBLAS/Source/FactoryKernels") + (delete-file "GraphBLAS/Source/GB_AxB__include1.h") + (delete-file "GraphBLAS/xxHash/xxhash.h") + (delete-file-recursively "GraphBLAS/zstd/zstd_subset") + ;; KLU + (delete-file "KLU/Include/klu.h") + (delete-file "KLU/Doc/klu_version.tex") + ;; LDL + (delete-file "LDL/Include/ldl.h") + (delete-file "LDL/Doc/ldl_version.tex") + ;; RBio + (delete-file "RBio/Include/RBio.h") + ;; SPEX + (delete-file "SPEX/Include/SPEX.h") + (delete-file "SPEX/Doc/SPEX_version.tex") + ;; SPQR + (delete-file "SPQR/Include/SuiteSparseQR_definitions.h") + (delete-file "SPQR/Doc/spqr_version.tex") + ;; UMFPACK + (delete-file "UMFPACK/Include/umfpack.h") + (delete-file "UMFPACK/Doc/umfpack_version.tex"))))) + +(define (suitesparse-package-src name path) + (origin + (method (@@ (guix packages) computed-origin-method)) + (file-name + (string-append name "-" suitesparse-version)) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (copy-recursively + (string-append #$suitesparse-src "/" #$path) #$output))))))) + +(define-public suitesparse-config + (package + (name "suitesparse-config") + (version suitesparse-version) + (source (suitesparse-package-src name "SuiteSparse_config")) + (build-system cmake-build-system) + (arguments (list #:tests? #f)) + (inputs (list openblas)) + (native-inputs (list pkg-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Configuration for all SuiteSparse packages") + (description "SuiteSparse is a suite of sparse matrix algorithms. This +package contains a library with common configuration options.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:40 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:41 +0000 Received: from localhost ([127.0.0.1]:33048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjT-0004rR-He for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:40 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjK-0004pc-5J for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7EA7F240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302894; bh=nRdXmEgds6g4jHWelS+aXO0YE48Quxrfnwyk4Yoo0m4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=DSmpyMx8KwZt3zaOjqopDi15qtZqy3WiAiXYpJO4rihM79DlzNf0ntC3c3ZlXQfWW L+FYM1yTihf5nl9BqiOmARTNZXuE3M5z79eL/xUdggwXvH+NahMwYVyvIFyBm2ffe5 gg1m383XAQNBx4FOwNaIzoEGQbfiiRmr5xQbdptFlbUu8/nKNUjTDZgSJjHKSVn/hj MaTcJarUBqL26KNKOtDigVQtP4ORdQ5cp0BsY/y10GxThVhfjAoNvhcRMOPMGwJqPT UPT3pMhBO3/AIThfDV0TdTABEig17NHWPMYwHU1cRez7MeEkBRyVfzUIVBupcMdwBr 9HfTEQ/QCfmEQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6k15Bjz9rxS; Thu, 21 Sep 2023 15:28:14 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 03/20] gnu: Add suitesparse-amd. Date: Thu, 21 Sep 2023 13:27:38 +0000 Message-ID: <42245d665abf95b4a09098f550b614249ec2a887.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-amd): New variable. --- gnu/packages/maths.scm | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 23c27c1746..356e2e1d9d 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4976,6 +4976,51 @@ (define-public suitesparse-config package contains a library with common configuration options.") (license license:bsd-3))) +(define-public suitesparse-amd + (package + (name "suitesparse-amd") + (version "3.2.0") + (source (suitesparse-package-src name "AMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + ;; Required for suitesparse-umfpack + (add-after 'install 'install-internal-header + (lambda _ + (install-file "../source/Include/amd_internal.h" + (string-append #$output "/include")))) + (add-after 'install-internal-header 'install-doc + (lambda _ + (install-file "../source/Doc/AMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs (list gfortran (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse matrix ordering for Cholesky factorization") + (description "AMD is a set of routines for ordering a sparse matrix prior +to Cholesky factorization (or for LU factorization with diagonal pivoting).") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:42 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:42 +0000 Received: from localhost ([127.0.0.1]:33052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjU-0004rs-Us for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]:46633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjL-0004pe-5b for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 81835240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302895; bh=sWme91IrZJhR6FavMe/IPPyWWXCmGmcgFBI80B+rhHc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ltH8OIko5Hp2A43mgu9gvu26kKknyR6pw5p2dViaLBdxEcwTkiu+9UaVcleZbVisP disbS+XXkMSpazX7c3095tarwkWS4k6k1wYLHvUSi0RR9soct8LKMWXHIw+QHaj7IQ yIC43VgqYdnph6pMAGLLe/pzQexShOKC/9SQuzfNTPsJsOMJEpwCEfXQYAp8ly/nBD nDRp55wceNRiIaIITEZS30ibOgn/KMUUTTM9rPNoHW8WGLbeVvh24yErD8PfPehElE gHaJLXX3Re9HJHf/cvCHtUtcs0KVSNMvGIwxvluGj7gPVf4cWiRpQS2be5AS6AZAAU bk//ekemLlrOg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6l1F98z9rxR; Thu, 21 Sep 2023 15:28:14 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 04/20] gnu: Add suitesparse-btf. Date: Thu, 21 Sep 2023 13:27:39 +0000 Message-ID: <25679b00e8c5380bbeb32b821829bd0f32434ff0.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-btf): New variable. --- gnu/packages/maths.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 356e2e1d9d..f2c6f136a8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5021,6 +5021,36 @@ (define-public suitesparse-amd to Cholesky factorization (or for LU factorization with diagonal pivoting).") (license license:bsd-3))) +(define-public suitesparse-btf + (package + (name "suitesparse-btf") + (version "2.2.0") + (source (suitesparse-package-src name "BTF")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for permuting matrices into block upper triangular form") + (description "BTF (Block Triangular Form) is a C library for permuting a +matrix into block upper triangular form.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:42 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:42 +0000 Received: from localhost ([127.0.0.1]:33054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjV-0004sD-Ui for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjM-0004pi-Sg for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1A526240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302897; bh=Q3KI3R1jB4dOuoALhSy1m444NmbwPXjG21vhtbvdjWs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=VIJ6koTrrTdcPRYAR49nw6SW6pcgyHDe2VhR/Olm7bXcO3ZpJKnbkOddtvxTYYNOW ebhmnTY1BEg8Xw2tGH+pa6Z5r3wZAB56Pcv3ENZInlawzDi1Mg52U7JgVC3+2ucMZI 3DRSSkpGGzlRgHg41T8pkW+FOxkBqLR4sW1ZihH2yZvVy3N2weYHU9m2IiBprXvJXK 97Cz6hJLpDbeN//sZ0YSeJJFjmwBlDPSia7XwJLg4Ku/Q3eyu/iMx1MzBssB2pSqjq DIts9/afDlrmOeurezLTH5bi4I4NQwhiYglK2rtrQHjRMmf+/QL/D9/9t3tp/+TmJo TQizUCumFXFXg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6m5B28z6tvs; Thu, 21 Sep 2023 15:28:16 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 06/20] gnu: Add suitesparse-colamd. Date: Thu, 21 Sep 2023 13:27:41 +0000 Message-ID: <3ff56bbfa5ba73c25af50cbae50210421a176237.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-colamd): New variable. --- gnu/packages/maths.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 875e7dc391..9a48a1fc65 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5093,6 +5093,36 @@ (define-public suitesparse-camd ordering.") (license license:bsd-3))) +(define-public suitesparse-colamd + (package + (name "suitesparse-colamd") + (version "3.2.0") + (source (suitesparse-package-src name "COLAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Column Approximate Minimum Degree Ordering") + (description "COLAMD is library for computing a permutation vector for a +matrix with which the LU factorization becomes sparser.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:43 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:43 +0000 Received: from localhost ([127.0.0.1]:33057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjW-0004sK-Me for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjN-0004pg-Au for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 54E79240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302896; bh=i0KalSraWhf1UoJrsjbDsvkQMOti2n6qTGkINcsvlno=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=RbnWPXCB0tF6pp8ZdLii2vDHDhUUClPxiPbO/Y4LvFMF9zTOoosJPq4/YHkW76+Uf qqDY1AKaMrFE0anoEQQjjg2Q8hGxCy8yGxVrqE5gkzbPTQ2fF2FcLdwnHldEjAH/Eq v0Z0Nja8mXsSV+LyWqB4kitEkWXezgb7iXnABxxZVm09ZXDTmrmV2qJU/NifzFXRnH miEkEnYLBVUlYj4JVU/ixS2LSMR68qALJMtpp4tNs/6m4ryZmzFWIvy0TSah/AuBUp btzEFqboaUH/yAj4iENOZcP+Qj+6pl1UxMa/ZoZV4QRe6Lk4TkWXAfexMkDSDAq/+B 7aOLHvZ2j4tpw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6l6v0Dz6tvq; Thu, 21 Sep 2023 15:28:15 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 05/20] gnu: Add suitesparse-camd. Date: Thu, 21 Sep 2023 13:27:40 +0000 Message-ID: <6e9b6a766a7953fafb9f01850c09783ea913331c.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-camd): New variable. --- gnu/packages/maths.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index f2c6f136a8..875e7dc391 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5051,6 +5051,48 @@ (define-public suitesparse-btf matrix into block upper triangular form.") (license license:lgpl2.1+))) +(define-public suitesparse-camd + (package + (name "suitesparse-camd") + (version "3.2.0") + (source (suitesparse-package-src name "CAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/CAMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse matrix ordering for Cholesky factorization with constraints") + (description "CAMD is a set of routines for ordering a sparse matrix prior +to Cholesky factorization (or for LU factorization with diagonal pivoting). +It is a variant of AMD which has the the option to apply constraints to the +ordering.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:44 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:44 +0000 Received: from localhost ([127.0.0.1]:33059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjX-0004sX-Cu for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:43 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjN-0004pj-GA for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D1DD5240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302897; bh=PJNoib38tE3pFlzR3R4/nH0uJr5D0c+qxw9lidJOQ4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Xr/0XylAoDFXiPl+Pii4Tv2/bBfFJAQfABlblt5sQk/0ycAByMlZl+nThncrYlqYd +pH48MhJXaEbPy6L0ObCnNgVa1IX9PpX/MoVDoOIbSLnOZbBHuBP5pwKaXIOeWWl21 b2rViQQeziGG8djUkSz6aRWy4gvD+v133QnnJ2m7n8vTB57vxeXc1+ya46fPfl352I z2xsCr5xNyKVzMXx+UnvOhIXLHqe6fl7q09aszK22DlpwY4T2wMfsUKUisoLkaBqyk hzMXjVBb8FmoDvT3AUovLJQy4Ynqx8m2y6EnFbvhy/kFwqTuZR7XAK+TteUMvbZuIX a10oQBewXHjmw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6n3cSJz9s0Q; Thu, 21 Sep 2023 15:28:17 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 07/20] gnu: Add suitesparse-ccolamd. Date: Thu, 21 Sep 2023 13:27:42 +0000 Message-ID: <5f57cf3264823354212a4077a8c8bb71a31ef554.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-ccolamd): New variable. --- gnu/packages/maths.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 9a48a1fc65..8f27134ba8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5123,6 +5123,37 @@ (define-public suitesparse-colamd matrix with which the LU factorization becomes sparser.") (license license:bsd-3))) +(define-public suitesparse-ccolamd + (package + (name "suitesparse-ccolamd") + (version "3.2.0") + (source (suitesparse-package-src name "CCOLAMD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Column Approximate Minimum Degree Ordering with constraints") + (description "CCOLAMD is library for computing a permutation vector for a +matrix with which the LU factorization becomes sparser. It is a variant of +COLAMD which has the the option to apply constraints to the ordering.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:44 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:44 +0000 Received: from localhost ([127.0.0.1]:33061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjX-0004se-Ur for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:44 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjO-0004pq-9P for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9D38E240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302898; bh=BxnN4PNmMcGOWFg1A984UAyvM6YenH52HQANVD7nmbc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=rU1BLPiubEw+9q9XsddZ6ELUCHfBEZLk+qtiAv6O4OlZrXKkdX4bbQ7MD9iTjr6IH //EXEkY4bvxMqyySakl/nBwHX7wvv1R3VLQzmzaEzR2K8cpOFyBPOyGtsiUGA5U5RD LtwwGwdd0Om0/EPS7MYbWuh4sEUmWYu1xh5uoiFyuZ37c21rYdCStezjMIpEpFDU3r oAvLTFHtLkdMrVt0wbOhWcBWkBcSUxOSu9jUs7MOdaSYZCJjs2bO2eMsuOfpi79U1h ffbRjNwJtOa6/mug/HjhD14bonFVWjLQqTOHbThleLJ4/tzopcxO1Cn2yQdk4apxaa GCA9YEBYh6DZw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6p289Qz9s0l; Thu, 21 Sep 2023 15:28:18 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 08/20] gnu: Add gklib. Date: Thu, 21 Sep 2023 13:27:43 +0000 Message-ID: <03c05cd0488fa4c7cd6d1df8c511e72852f7c056.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (gklib): New variable. --- gnu/packages/maths.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8f27134ba8..a2650b3101 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4193,6 +4193,42 @@ (define-public scotch-shared (define-public pt-scotch-shared (deprecated-package "pt-scotch-shared" pt-scotch)) +(define-public gklib + (let ((commit "8bd6bad750b2b0d90800c632cf18e8ee93ad72d7") + (revision "1")) + (package + (name "gklib") + (version (git-version "5.1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/GKlib") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "08k4zzyd7zsisdhfmnwz7zb9w3pzpgagyjq52mwk8i6sqajdxsdn")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DBUILD_SHARED_LIBS=ON" + #$@(if (target-x86?) + '() + '("-DNO_X86=1"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-march=native + (lambda _ + (substitute* "GKlibSystem.cmake" + (("-march=native") ""))))))) + (home-page "https://github.com/KarypisLab/GKlib") + (synopsis "Helper library for METIS") + (description + "GKlib is a library of various helper routines and frameworks used by +software from KarypisLab, such as METIS.") + (license license:asl2.0)))) (define-public metis (package -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:44 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:45 +0000 Received: from localhost ([127.0.0.1]:33063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjY-0004sm-D6 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjP-0004pt-3o for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7346A240104 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302899; bh=5wxZDPQuPnnBuq5f1EeowMWF/FqCk7shN8Mrl+vjZW0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=UBCkO8K2Q4WuxI2LPx1b+VXi4iFkA9zms8VNB2jdB5/JJ7dtAx4vrk60TfJkqs8v/ CTSdo6dOY/lJWJsmnHvVAcC81jSWAUza2Y1Q06oKon4Xh7mkwUAe+Gk62wHmRrIlMj mf1K6NRjVcMq2MxFY1RSwn5EKfCajnY4Kzf77OcACXjlNPGBlZQePlA+ymNvH3bAsb 3ZDOmIuED/zqDqIsX4tn+7hxKjeia1qw3HnY4rZ5/wUtyqNkksbiUb9lhGe7pvH0tf fv9pYJLzexoca+c+vbHsKmJWOWMSnrIYPNKjvmuHR0+y7K1aAHq9lHFcRBXTO1Yg9g /MAeflCen6hJA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6q0dzQz6tvq; Thu, 21 Sep 2023 15:28:19 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 09/20] gnu: Add metis-5.2. Date: Thu, 21 Sep 2023 13:27:44 +0000 Message-ID: <60843d24159cd95c85a4af44813f370f94d11eb3.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (metis-5.2): New variable. --- gnu/packages/maths.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a2650b3101..2a9040ad39 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4230,6 +4230,7 @@ (define-public gklib software from KarypisLab, such as METIS.") (license license:asl2.0)))) +;; XXX: Remove once the full SuiteSparse package is replaced. (define-public metis (package (name "metis") @@ -4263,6 +4264,53 @@ (define-public metis schemes.") (license license:asl2.0))) ;As of version 5.0.3 +(define-public metis-5.2 + (package + (name "metis") + (version "5.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/METIS") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19vi1wsi2gp2m5vb715yfnzd2g7brm4r40qxg65ysrzgl13lpmvr")) + (snippet + #~(delete-file "manual/manual.pdf")))) + (build-system cmake-build-system) + (inputs (list gklib openblas)) + (arguments + (list + #:tests? #f ; Tests are not automatic + #:configure-flags + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib)) + #:phases + #~(modify-phases %standard-phases + ;; The original Makefile copies some files and invokes CMake. + (add-before 'configure 'prepare-cmake + (lambda _ + (substitute* "Makefile" + (("config: distclean") "config:") + (("BUILDDIR =.*") + "BUILDDIR = .\n") + ((".*cmake.*") "")) + (substitute* "CMakeLists.txt" + (("build/") "../source/")) + (invoke "make" "config")))))) + (home-page "http://glaros.dtc.umn.edu/gkhome/metis/metis/overview") + (synopsis "Graph partitioning and fill-reducing matrix ordering library") + (description + "METIS is a set of serial programs for partitioning graphs, partitioning +finite element meshes, and producing fill-reducing orderings for sparse +matrices. The algorithms implemented in METIS are based on the multilevel +recursive-bisection, multilevel k-way, and multi-constraint partitioning +schemes.") + (license license:asl2.0))) + (define-public p4est (package (name "p4est") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:45 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:45 +0000 Received: from localhost ([127.0.0.1]:33065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjY-0004st-ST for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjQ-0004pt-9d for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CE18A24010A for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302905; bh=I2PevlWgz2xDOH23u0l9pAbhgb4QwG39SLssUce8ZXI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=nJab2AAxkHmSiR1u+bNvhh5MLnFJy32NJ3bjnQgVRTGWuWVgq8hw6DIzRccqavIPH kFhJcj2rKFNDdHkIxO1w6Ij0rddjCC3gbR3Gep/dD3SMEA1a5pwUxb+oxZFva6hLrd FoFQqRHQ0g3+sRcWwOjMlTXauMy2NZVwVFJycX2E7bZPOwaeJeLEhzRILGdQCetI1x 2a0uFJ7RxaueOuqpqm+Tid5s6t7He85kqwb29SP1r8NDZbrbAM6D+ee+4PSq4ye9G/ pUq/S3SFqiCHRwCZsAfzwpkTTG5tdVCNIBLUUWOkeG73kR3NU0MB12qkUVgjp+GeJ+ 1WTk1O9bUZBqQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6x32JLz9s0l; Thu, 21 Sep 2023 15:28:25 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 17/20] gnu: Add suitesparse-mongoose. Date: Thu, 21 Sep 2023 13:27:52 +0000 Message-ID: In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-mongoose): New variable. --- gnu/packages/maths.scm | 72 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2b7f7ef0ef..32b3a36871 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5549,6 +5549,78 @@ (define-public suitesparse-rbio for reading and writing sparse matrices in the Rutherford/Boeing format.") (license license:gpl2+))) +(define-public suitesparse-mongoose + (package + (name "suitesparse-mongoose") + (version "3.2.0") + (source (suitesparse-package-src name "Mongoose")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + ;; XeLaTeX fails with .eps graphics + (with-directory-excursion "../source/Doc" + (for-each + (lambda (name) + (invoke "epstopdf" name)) + (find-files "Figures" "\\.eps$")) + (substitute* "Mongoose_UserGuide.tex" + (("\\.eps") ".pdf")) + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/Mongoose_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs + (list texlive-epstopdf + (texlive-updmap.cfg + (list texlive-algorithmicx + texlive-booktabs + texlive-lastpage + texlive-multirow + texlive-pgf + texlive-caption + texlive-etoolbox + texlive-csquotes + texlive-fancybox + texlive-enumitem + texlive-microtype + texlive-cancel + texlive-sourcecodepro + texlive-xkeyval + texlive-fontspec + texlive-wasy + texlive-wasysym + texlive-float + texlive-tcolorbox + texlive-environ + texlive-xcolor + texlive-xetex + texlive-listings)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Graph partitioning library") + (description "Mongoose is a library for graph partitioning by computing +edge cuts using a coarsening and refinement framework.") + (license license:gpl3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:28:46 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:46 +0000 Received: from localhost ([127.0.0.1]:33067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjZ-0004t1-GQ for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:46 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjQ-0004q8-Ji for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 41657240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302900; bh=rGTNwfFNqNbZcIvOB5d4tZnpyexa/UpIGwYwiQt1nMs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=k6ERDOJZzdN8CdOc8LQjvm1FL7ZMoMMxmD+Ef6AilXsiMRjLJd+gRs5Tsk8hpHISW Rz6brmJM8xjaIfypcnzDeFF+SZN45pIz+15lyTV1lK2SKcftrtcNFOLOXC3YeJXqLs GA4m9YFpnhppHaup1f/q4Y2lkFqLjOyC5pfSBhh/iS019EXTQsanqzzUDJDonOeNkl 7sMbOcs1sc7cV2lMcus78Yu7sTplaC7ttiyO7vs9koQSw0a/I2XKxYdeJnr6gHSN6l UrRkX47pC3qRVVwQ2QoTPK6cKTTD4aLhVLf3MyTJBHYaWYdzNVwaIpEu1DQN+uv5lO YZWYgKviheoEw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6q6MWWz9s0l; Thu, 21 Sep 2023 15:28:19 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 10/20] gnu: Add gklib-suitesparse. Date: Thu, 21 Sep 2023 13:27:45 +0000 Message-ID: <6bcdd5782ba9e7bd231aa7419d9aec9816fbb919.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (gklib-suitesparse): New variable. --- gnu/packages/maths.scm | 25 ++++++++ gnu/packages/patches/gklib-suitesparse.patch | 65 ++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 gnu/packages/patches/gklib-suitesparse.patch diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2a9040ad39..3a86e90cb5 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5238,6 +5238,31 @@ (define-public suitesparse-ccolamd COLAMD which has the the option to apply constraints to the ordering.") (license license:bsd-3))) +(define-public gklib-suitesparse + (package/inherit gklib + (name "gklib-suitesparse") + (source (origin + (inherit (package-source gklib)) + (patches (cons + (search-patch + "gklib-suitesparse.patch") + (origin-patches (package-source gklib)))))) + (arguments + (substitute-keyword-arguments (package-arguments gklib) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'patch-cmake + (lambda _ + (substitute* "CMakeLists.txt" + (("add_library\\(GKlib.*" all) + (string-append + all + "target_link_libraries(GKlib PUBLIC" + " ${SUITESPARSE_CONFIG_LIBRARIES} m)\n"))))))))) + (inputs + (modify-inputs (package-inputs gklib) + (prepend suitesparse-config))))) + (define-public suitesparse (package (name "suitesparse") diff --git a/gnu/packages/patches/gklib-suitesparse.patch b/gnu/packages/patches/gklib-suitesparse.patch new file mode 100644 index 0000000000..8b6c708b6a --- /dev/null +++ b/gnu/packages/patches/gklib-suitesparse.patch @@ -0,0 +1,65 @@ +This patch contains the relevant changes to GKlib made in SuiteSparse +(CHOLMOD) for the version 7.2.0 +(https://github.com/DrTimothyAldenDavis/SuiteSparse/commit/8a7641cdb4809533c681417e94f98058c07c5da2). +The disabling of signal handling when MATLAB_MEX_FILE is defined is omitted. + +diff -ur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,6 +3,8 @@ + + option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF) + ++find_package ( SuiteSparse_config 7.1.0 REQUIRED ) ++ + get_filename_component(abs "." ABSOLUTE) + set(GKLIB_PATH ${abs}) + unset(abs) +diff -ur a/GKlib.h b/GKlib.h +--- a/GKlib.h ++++ b/GKlib.h +@@ -59,6 +59,24 @@ + #include + #endif + ++/* -------------------------------------------------------------------------- */ ++/* Added for incorporation into SuiteSparse. ++ Tim Davis, Oct 31, 2022, Texas A&M University. */ ++#include "SuiteSparse_config.h" ++#define malloc SuiteSparse_config_malloc ++#define calloc SuiteSparse_config_calloc ++#define realloc SuiteSparse_config_realloc ++#define free(p) \ ++{ \ ++ if ((p) != NULL) \ ++ { \ ++ SuiteSparse_config_free (p) ; \ ++ (p) = NULL ; \ ++ } \ ++} ++ ++/* -------------------------------------------------------------------------- */ ++ + + + +diff -ur a/memory.c b/memory.c +--- a/memory.c ++++ b/memory.c +@@ -108,6 +108,8 @@ + /*************************************************************************/ + int gk_malloc_init() + { ++ gkmcore = NULL; ++#if 0 + if (gkmcore == NULL) + gkmcore = gk_gkmcoreCreate(); + +@@ -115,6 +117,7 @@ + return 0; + + gk_gkmcorePush(gkmcore); ++#endif + + return 1; + } -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:18 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:18 +0000 Received: from localhost ([127.0.0.1]:33080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk6-0004v5-8o for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjQ-0004q9-OB for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 19EB1240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302901; bh=TfbjnSX0F1e2MwLy800jRa4q04IUAadujWzVD5MtCfI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=N/MPONgFaITJo7v37v5WFR76fxRS8JpgdIVqlOBgwbPfLgIaEQX+AOLtjQ8QmNW2I A9aQ5b3uZ986yIk2ONAZ9bovqoLpq7zvPl15nY9fXKS9yOQQjp4ncVYAjyhzyBHBZd GUuRc+jpT8jaiqjy3u1MWn1BwcznH8VTft1eLqscINXkLQFTMFTe4qfeVPr8mThKai xyEUIozFn7Npyh1V2ARNUA+gQDSsG7fpTk7j2dd3fyqJj/EPMRjQjUsB2MGRpNELc9 5B0rJtg8sxZjR0KqPgGmVx3RSiwHcU9KIq32ORSAlIrirmHJG+1VGr1HR8XCcxJdWN wibWzWm+/XUUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6r55fWz6tvq; Thu, 21 Sep 2023 15:28:20 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 11/20] gnu: Add metis-suitesparse. Date: Thu, 21 Sep 2023 13:27:46 +0000 Message-ID: <824829492ddfa1e049c6260a76d7763a3be1195f.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (metis-suitesparse): New variable. --- gnu/packages/maths.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3a86e90cb5..3f80029414 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5263,6 +5263,32 @@ (define-public gklib-suitesparse (modify-inputs (package-inputs gklib) (prepend suitesparse-config))))) +(define-public metis-suitesparse + (package/inherit metis-5.2 + (name "metis-suitesparse") + (arguments + (substitute-keyword-arguments (package-arguments metis-5.2) + ((#:phases phases) + #~(modify-phases #$phases + (add-before 'prepare-cmake 'set-idxwidth + (lambda _ + (substitute* "Makefile" + (("IDXWIDTH.*=.*") + "IDXWIDTH = \"\\#define IDXTYPEWIDTH 64\"\n")))) + (add-before 'prepare-cmake 'link-suitesparse-config + (lambda _ + (substitute* "programs/CMakeLists.txt" + (("include_directories.*" all) + (string-append + all "find_package(SuiteSparse_config REQUIRED)\n")) + (("(target_link_libraries.*)GKlib(.*)" _ start end) + (string-append + start "GKlib ${SUITESPARSE_CONFIG_LIBRARIES}" end))))))) + ((#:configure-flags _) + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) + (inputs (list suitesparse-config gklib-suitesparse)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:19 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:19 +0000 Received: from localhost ([127.0.0.1]:33082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk6-0004v8-JG for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:19 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjR-0004qL-Fm for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CC256240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302901; bh=vhKRBp7cCnNzODctvszy1rbBiyZ6fJ1ElEDCaxSIp2w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=HE6gbWHvIHQgYObCUvTZMMU8LIG7RFq2GPkesJjQyv6DpBjgbQA+FnRMxJc8mT9tL OKu66D5SsgfxTr2WI4j+jUqqaXbPXriiFVDzvmsjbptXJxLRC53DdWJxwLzts4u3wa X9w7vdxMR7iLdYAZHg5haQJzrmU/QbkHIbkAH74x3y+zB3bJjpN1Tb9yb3tTZmpYHL FYLOsJgIm2bDhBbCVYm/pcLFuI61hgeMe31uTwmwW31EHVd2vNhT08vJSJjU1a+/+y uVWx5o7XRoLFFj1sDuNlidLUOKtMMhZx122a/SfUZ2LnPmfarDGWFFJ5NVythTEguL G3OjInWT6lkuA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6s3Qhzz9s0Q; Thu, 21 Sep 2023 15:28:21 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 12/20] gnu: Add suitesparse-cholmod. Date: Thu, 21 Sep 2023 13:27:47 +0000 Message-ID: <602387013ca27723533d224c90fbe1ee65ce913b.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-cholmod): New variable. --- gnu/packages/maths.scm | 82 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3f80029414..271ae8137b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5289,6 +5289,88 @@ (define-public metis-suitesparse (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) (inputs (list suitesparse-config gklib-suitesparse)))) +(define-public suitesparse-cholmod + (package + (name "suitesparse-cholmod") + (version "4.2.0") + (source (suitesparse-package-src name "CHOLMOD")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n")) + (("add_subdirectory.*GPU.*") "\n") + ((".*cmake_modules/FindCHOLMOD_CUDA.cmake.*") "\n")))) + (add-after 'unpack 'use-external-metis + (lambda _ + (let ((port (open-file "CMakeLists.txt" "a"))) + (display + (string-append + "find_library(METIS_LIBRARY NAME metis PATHS ENV LIBRARY_PATH) +get_filename_component(METIS_LIBRARY ${METIS_LIBRARY} REALPATH) +find_library(GKLIB_LIBRARY NAME GKlib PATHS ENV LIBRARY_PATH) +get_filename_component(GKLIB_LIBRARY ${GKLIB_LIBRARY} REALPATH) +target_link_libraries(CHOLMOD PRIVATE ${METIS_LIBRARY} ${GKLIB_LIBRARY}) +target_link_libraries(CHOLMOD_static PRIVATE ${METIS_LIBRARY} ${GKLIB_LIBRARY})") + port) + (close-port port)) + (delete-file "Partition/cholmod_metis_wrapper.c") + (delete-file "Partition/cholmod_metis_wrapper.h") + (substitute* "Partition/cholmod_metis.c" + (("#include \"cholmod_metis_wrapper\\.h\"") "") + (("#include \"SuiteSparse_metis/include/metis.h\"") + "#include ") + (("SuiteSparse_metis_METIS") "METIS")))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/CHOLMOD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Core/lesser.txt" out) + (install-file "../source/MatrixOps/gpl.txt" out))))))) + (inputs + (list gklib-suitesparse + metis-suitesparse + openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-colamd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for solving sparse symmetric positive definite linear +equations") + (description "CHOLMOD is a set of routins for factorizing sparse symmetrix +positive definite matrices, updating/downdating sparse Cholesky factorizations +and other related operations.") + (license (list license:gpl2+ license:lgpl2.1+)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:19 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:19 +0000 Received: from localhost ([127.0.0.1]:33084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk7-0004vG-3u for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:19 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjR-0004pt-Rv for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 684DE240105 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302907; bh=Md3s22ZY32bRvsArdOh6ZkAtQGvAaB7k24Gu9VB6HmE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=FGl8/hQO+nm0O8VGrdA3/KRYybW6aTi3tBLm1jFzCAAftavoXxZcMi1GpXYd05HO9 HdgFjfdUbitcFYZy8+8hquEa6DlUZQweb8RD7wLYIT9gcj63KOZ55TgTzM7HgZRC8v XHqW3Uqz8SqohK7ZuRGgEN+4DY4Qg45+Qf8mOCJndq9bLWwcdQo2ziVspIP4Iw7zvA yzGVbJQHZyoMRMtSCvsna16FJkUppOG5+k0N2jKjc+5YsSZYW1+XtFJ5RoJiw8YSAR 5KsjStesW2WP1pyWQF0y2hM2WkszqE3ZQNw+31BF56zjUBNUzOFGUAeDMICQpGvQ7b /DZbvwM/xpzNw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6z08cwz9s0l; Thu, 21 Sep 2023 15:28:26 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 19/20] gnu: Add suitesparse-spqr. Date: Thu, 21 Sep 2023 13:27:54 +0000 Message-ID: <45138f7d8e6f5998835ce03c0a8214e162ee4d54.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-spqr): New variable. --- gnu/packages/maths.scm | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 237c4fb5cd..a5d7f4ebd3 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5688,6 +5688,65 @@ (define-public suitesparse-spex ;; Dual licensed. (license (list license:lgpl3+ license:gpl2+)))) +(define-public suitesparse-spqr + (package + (name "suitesparse-spqr") + (version "4.2.0") + (source (suitesparse-package-src name "SPQR")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/spqr_user_guide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-epsf)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse QR factorization method") + (description "The SPQR (SuiteSparseQR) package provides sparse QR +factorization based on the multifrontal method, using BLAS for the frontal +matrices.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:20 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:20 +0000 Received: from localhost ([127.0.0.1]:33086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk7-0004vN-NJ for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjS-0004qN-DW for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BB6AF240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302902; bh=8mpFtPcCrZLkjIuzhuFL3e6gMNkDHyoBuacKte2fX4s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=AyruZGxM3AWImpqvYomqNJ/dXkOPOntco0pbpZ9/kyLDhWKmYSEE/gbcpEUD+940Y +F8+1JsmubeAhVD1jhxT7R1jjI4238pjCosh5KV1kM4vhxlXiA+H5XOCnMUKxB0Zuf DwenxtBhhgOgWGoaHTukLopg4+h9fuSMm5MC1uKQfMgvNFE2l/mYCJR7/b0Ju+hyPI YjqWFw9q0D1D2Jnmo5wxQ/jcAGRP8o1yFByE+qh73h/dwdBqcY4bWcEw5WJutbBiDS 0hnjZRled63DCGllP2FqbAc/yyJARVqsESwMjw92GtksmLzWhRguF7iKSNzoEboe4O mw0HEkQOnrROA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6t1vG2z9rxS; Thu, 21 Sep 2023 15:28:22 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 13/20] gnu: Add suitesparse-cxsparse. Date: Thu, 21 Sep 2023 13:27:48 +0000 Message-ID: <9987319f1cec756d12cda0a0413b7eb49a5d35f3.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-cxsparse): New variable. --- gnu/packages/maths.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 271ae8137b..813f9bd568 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5371,6 +5371,37 @@ (define-public suitesparse-cholmod and other related operations.") (license (list license:gpl2+ license:lgpl2.1+)))) +(define-public suitesparse-cxsparse + (package + (name "suitesparse-cxsparse") + (version "4.2.0") + (source (suitesparse-package-src name "CXSparse")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Doc/lesser.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Concise eXtended Sparse Matrix Package") + (description "CXSparse is a collection of sparse matrix algorithms for +direct methods on both real and complex matrices.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:20 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:20 +0000 Received: from localhost ([127.0.0.1]:33088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk8-0004vV-7d for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjS-0004q8-MK for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 39A4D240028 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302908; bh=EuPbYwWLuYfKyxjeqlANtK14kHDzO5uFLQReXybRtwA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=UxsP3wfmSZCWOFekEHihTzdXq5xVEHowolX3QVU+RxUXKpjgLoQ1fcfWw9QGLsEwb ogAv/dEaVWY7qWLrK5xwAWd0x593vWbG0QADio7O7q/T5YuDAlk4AgwTZyeLaKLrRZ JdJhUw1mg0+H2N3+54fLWRCZcewtDI2J5FiR1gS5vAE/eMghG6QUp3C9M4sWJLo5nI fLuVc4bpZi0Lre0sPhhcGXoA43icPjgJbZfwjegRR/1+HS0pCEsfDB/aT1QHxVcMbw m5BOf9Z0lc3SpsnsYJAvS23loraf7tGjGuCU02rUG7tly1raH4SIHp8CQwtS2cevnQ gHml4788qmksA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6z671cz9s1F; Thu, 21 Sep 2023 15:28:27 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 20/20] gnu: Add suitesparse-umfpack. Date: Thu, 21 Sep 2023 13:27:55 +0000 Message-ID: <039a1767e09d20d1797b979e29ceb139c6a25630.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-umfpack): New variable. --- gnu/packages/maths.scm | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a5d7f4ebd3..fbfa94265b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5747,6 +5747,74 @@ (define-public suitesparse-spqr matrices.") (license license:gpl2+))) +(define-public suitesparse-umfpack + (package + (name "suitesparse-umfpack") + (version "6.2.0") + (source (suitesparse-package-src name "UMFPACK")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../source/Doc/UMFPACK_UserGuide.pdf" outdir) + (install-file "../source/Doc/UMFPACK_QuickStart.pdf" outdir)))) + (replace 'install-license-files + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../source/Doc/License.txt" outdir) + (install-file "../source/Doc/gpl.txt" outdir))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-etoolbox + texlive-framed + texlive-mdframed + texlive-needspace + texlive-xcolor + texlive-zref)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems via LU factorization") + (description "UMFPACK is a set of routines for solving unsymmetric sparse +linear systems using the Unsymmetric MultiFrontal method and direct sparse LU +factorization.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:21 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:21 +0000 Received: from localhost ([127.0.0.1]:33090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk8-0004vc-Mj for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:21 -0400 Received: from mout02.posteo.de ([185.67.36.66]:45861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjT-0004qU-3h for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6FD5B240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302903; bh=RAFK2uoQhbt1kTKpBzqmWyBAWNOF2aVf+LZ815jTsD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=X/eTw1j7MFmqXDmOW+V7eFYb9WoHqgzVEvSWs0fE/s9qgmhM/MF8HRbHdKUg5m3R7 WiFlrVkgEYCi+o74nDsSOGxvgeJ50r1sj/A2hckkCA9BhQ0f4VPvbb0L/JrbMwaeW2 oPVO5aVMsccew5ayq/x3BJgMWjxPsoWkUL6O9hNv3emma2L5ZdzOio21FUP8D2KfZe KeKnuFxhuiSYoUOWsLHsXBfo3bF0hd43VgVr+B18JSaXf7y8oDJG4AF+l1jXcF4LZ4 FrAcwGZiAuzKBt8JVy4U3e2BXfC2YlakslyINTKCLid7au+tIzJCVjS81RUdZiHyHr Gaovr0Zpz5l9Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6v0RBXz6twr; Thu, 21 Sep 2023 15:28:23 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 14/20] gnu: Add suitesparse-klu. Date: Thu, 21 Sep 2023 13:27:49 +0000 Message-ID: <45d255c31176f6782f7763d7e808ded959a83249.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-klu): New variable. --- gnu/packages/maths.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 813f9bd568..9b85ceb6a8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5402,6 +5402,67 @@ (define-public suitesparse-cxsparse direct methods on both real and complex matrices.") (license license:lgpl2.1+))) +(define-public suitesparse-klu + (package + (name "suitesparse-klu") + (version "2.2.0") + (source + (suitesparse-package-src name "KLU")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-btf + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "../source/Doc/Makefile" + (("\\.\\./\\.\\./BTF/Include/btf.h") + (string-append #$suitesparse-btf "/include/btf.h"))) + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/KLU_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list suitesparse-amd + suitesparse-btf + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems with a LU factorization") + (description "KLU is a method for computing the LU factorization of sparse +for real and complex matrices.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:21 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:22 +0000 Received: from localhost ([127.0.0.1]:33092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk9-0004vk-6o for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjT-0004qg-SD for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 36802240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302904; bh=PIwkopi3YUReGf1OBrADCXT+/r7BmJvvMqn6S7fUlpA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=bNok3ZFA9PpU/0Rnb8SE+C/h0TR2HlTJ5sOdVKJFUf5CY7CtSi1owOVarUBSk/GqL eqYDrL9ZOu0nZ5OtxPoh7o+KUdjbm1zYLQOycUVUia49mD0n6ZHsvFBBSavCil5Eyp 8Cb+ANk4Ymwn06Ya6InKdVtOvRCO0G/ylusHa2RgaXjnq3/4InCc43cF+Gss1T6dQ5 cfqxUivnpTJ16ejlzCMhA0N9lFQfFwWEYcuYzhqktpFNyUiDr2sqJ9SnzW0umX5Tg7 q/aL9BwF91hZNth5T6NO39Znu58RvhqiGwl388jsib9yyZO8X+AlgoBM3DLf9k13j+ O51KbVHJrAIgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6v62r2z6trs; Thu, 21 Sep 2023 15:28:23 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 15/20] gnu: Add suitesparse-ldl. Date: Thu, 21 Sep 2023 13:27:50 +0000 Message-ID: <92bd7dd868c6d710452dd40e4e281841e4585e70.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-ldl): New variable. --- gnu/packages/maths.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 9b85ceb6a8..1121f09b22 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5463,6 +5463,57 @@ (define-public suitesparse-klu for real and complex matrices.") (license license:lgpl2.1+))) +(define-public suitesparse-ldl + (package + (name "suitesparse-ldl") + (version "3.2.0") + (source (suitesparse-package-src name "LDL")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "../source/Doc/Makefile" + (("\\.\\./\\.\\./BTF/Include/btf.h") + (string-append #$suitesparse-btf "/include/btf.h"))) + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/ldl_userguide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../source/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list suitesparse-amd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "LDL' factorization method for sparse, symmetric matrices") + (description "This package contains a set of routines for computing the +LDL' factorization of sparse, symmetric matrices. Its focus lies on concise +code.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:22 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:22 +0000 Received: from localhost ([127.0.0.1]:33094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk9-0004vr-SA for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:22 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjU-0004qn-Kv for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F3F6F240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302905; bh=WSr+PYMsG6+ykcHKJCY7tFw164BAp98UrWdOeJGMvX0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=b7z+Lw/fzJr/Egzrh0z9y211eyhW8nMen279e3PbF/aniEGtsISf4rY2zftCDtIcC DgAjJGhWeoWewBsGEjTfV4jNVgHg9/fRzuXFs0iwzCdACU4iWgs3xZw64/EcVym9Gj 3+PDagYcibNKbrO1TQJXor2O7KoNEGw4zVnfy2BtB97p+WdExH9avwUZ4ZSwZGDmgS ZQT/aWUjd6L0E7MHHxoGQKMbS6o0Sx5Yn/iZIiBt/6aUeswjW1xUV8F/0J33f+l8Uq D1LNe1556DAY8QFTr+0/LukUdguZnXJp35DnKHU2GZNEWp4hJXbFFePaQw/DFa+AS/ 9vk4otXngurtA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6w4JgHz6tvp; Thu, 21 Sep 2023 15:28:24 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 16/20] gnu: Add suitesparse-rbio. Date: Thu, 21 Sep 2023 13:27:51 +0000 Message-ID: <95023c251b41004544b43f1fa543b5b258d4417d.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-rbio): New variable. --- gnu/packages/maths.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1121f09b22..2b7f7ef0ef 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5514,6 +5514,41 @@ (define-public suitesparse-ldl code.") (license license:lgpl2.1+))) +(define-public suitesparse-rbio + (package + (name "suitesparse-rbio") + (version "4.2.0") + (source (suitesparse-package-src name "RBio")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Doc/gpl.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for the Rutherford/Boeing sparse matrix format") + (description "This package provides the C library of RBio. It can be used +for reading and writing sparse matrices in the Rutherford/Boeing format.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:29:23 2023 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:23 +0000 Received: from localhost ([127.0.0.1]:33096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJkA-0004vz-Ec for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:23 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjW-0004qu-7H for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8CD58240106 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302906; bh=ksfbQiom4E2fsFu6L8b0PaSWcvxvNIoIN+HRROmhQDI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=XR+mn0FpIb7at3GHYAQdpvxaqZ4MqRYuvKP14CD/iD2Fcg77qRLP2SUepG5GMJaVl Te/6jvtXP/bOEZjzINwMCaQLzNTcvAQtdx498LxPBhJ38VN2OHOIr561IZcMeyEguH HtjxtBwlNa2osR6ppiqHW2sbfD3ruXZ1lCRDtl0RCmTRndkKQ5CICEi42XAFhbonFn J/ldd9a5fCMKvgtCmuE97OHjgYgTUac3WelleISJpkfqFwl2GW+/PmnYwflfnMsKvc przcgvuxsB0XH0M6yUqt1oeIgne5ubzpv/E9wj/fnbiA9ghj6qQhtY8ZNtrfMfmh0s tOXAWyqnjAOfg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6y1dC9z9rxS; Thu, 21 Sep 2023 15:28:26 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v2 18/20] gnu: Add suitesparse-spex. Date: Thu, 21 Sep 2023 13:27:53 +0000 Message-ID: <2de97a43907677a5da10bf57e8f7faf5a34ec39f.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-spex): New variable. --- gnu/packages/maths.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 32b3a36871..237c4fb5cd 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5621,6 +5621,73 @@ (define-public suitesparse-mongoose edge cuts using a coarsening and refinement framework.") (license license:gpl3))) +(define-public suitesparse-spex + (package + (name "suitesparse-spex") + (version "2.2.0") + (source (suitesparse-package-src name "SPEX")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../source/Doc/SPEX_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list gmp + mpfr + suitesparse-amd + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-paralist + texlive-comment + texlive-psfrag + texlive-soul + texlive-multirow + texlive-algorithms + texlive-float + texlive-algorithmicx + texlive-cprotect + texlive-bigfoot + texlive-caption + texlive-listings + texlive-xcolor + texlive-framed + texlive-mdframed + texlive-etoolbox + texlive-zref + texlive-needspace)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Package for SParse EXact algebra") + (description "SPEX is a set of routines for sparse exact linear algebra. +It contains the SPEX Left LU library for computing a sparse exact left-looking +LU factorization for solving unsymmetric sparse linear systems.") + ;; Dual licensed. + (license (list license:lgpl3+ license:gpl2+)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 09:21:24 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 13:21:24 +0000 Received: from localhost ([127.0.0.1]:46264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoOI7-0003XP-MC for submit@debbugs.gnu.org; Thu, 05 Oct 2023 09:21:24 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:57096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoOI3-0003Wt-TI for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 09:21:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=e/Uqx+S4JKOlUa44TdUqIFGF6putoyCT+ovVvuOwV+I=; b=PdeO79SvEqrasdZSRyPMRfvSe1RGNYAaRDCdH2usdkjO1UE2DVFX0bNS aP98gr1L71/rWaSwapAV9b5E14KrIu6rQ3KoUTe6u2ofowI/BeY/FCWkA zqNB5zlGAJuAIa4OE1lbdW83ZS+6QvjNwX2f6AdeIWOUjqscsnZH9oAZe k=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,203,1694728800"; d="scan'208";a="67870579" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 15:20:54 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: David Elsing Subject: Re: bug#66129: [PATCH 00/20] Split SuiteSparse into subpackages In-Reply-To: (David Elsing's message of "Wed, 20 Sep 2023 22:05:16 +0000") References: Date: Thu, 05 Oct 2023 15:20:52 +0200 Message-ID: <875y3l6w97.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66129 Cc: 66129@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi David, David Elsing skribis: > This patch series adds the individual SuiteSparse packages (as in > Gentoo: > https://packages.gentoo.org/packages/sci-libs/suitesparse/dependencies), > with autogenerated files and bundled libraries removed. Nice! > The GraphBLAS library is not yet included, but AFAICT it is not required > by any other package. It also makes up by far the most space of the > suitesparse package, e.g. on x86_64-linux, libgraphblas.so.7.2.0 is 196 > MB of the 201 MB SuiteSparse package. > > I think it would be best to keep the full suitesparse package until all > of its dependencies are updated and the GraphBLAS package is added, as > replacing them all at once would make the patch series quite large. > > Is the use of (@@ (guix packages) computed-origin-method) ok for > creating the individual origins or is there another alternative? Instead of: +(define (suitesparse-package-src name path) + (origin + (method (@@ (guix packages) computed-origin-method)) + (file-name + (string-append name "-" suitesparse-version)) + (sha256 #f) + (uri + (delay + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (copy-recursively + (string-append #$suitesparse-src "/" #$path) #$output))))))) I=E2=80=99d suggest this: (define (suitesparse-package-source name directory) (computed-file (string-append name "-" suitesparse-version ".tar.xz") (with-imported-modules '((guix build utils)) #~(begin (use-modules (guix build utils)) (copy-recursively (string-append #$suitesparse-src "/" #$directory) #$output))))) That way we have something simple that doesn=E2=80=99t rely on a private procedure. > gnu: suitesparse: Tweak description. > gnu: Add suitesparse-config. > gnu: Add suitesparse-amd. > gnu: Add suitesparse-btf. > gnu: Add suitesparse-camd. > gnu: Add suitesparse-colamd. > gnu: Add suitesparse-ccolamd. > gnu: Add gklib. > gnu: Add metis-5.2. > gnu: Add gklib-suitesparse. > gnu: Add metis-suitesparse. > gnu: Add suitesparse-cholmod. > gnu: Add suitesparse-cxsparse. > gnu: Add suitesparse-klu. > gnu: Add suitesparse-ldl. > gnu: Add suitesparse-rbio. > gnu: Add suitesparse-mongoose. > gnu: Add suitesparse-spex. > gnu: Add suitesparse-spqr. > gnu: Add suitesparse-umfpack. Apart from the trick above, this looks great to me! Could you send an updated version? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 10:10:10 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 14:10:10 +0000 Received: from localhost ([127.0.0.1]:48025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoP3K-0007pX-3K for submit@debbugs.gnu.org; Thu, 05 Oct 2023 10:10:10 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:4013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoP3E-0007of-Rt for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 10:10:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=YW9kzvn9mp4RVUVuD+M0J3u00WkELo9nMbpDb85vguY=; b=t4vIiEa4o60zx+zbf8EZDjd9Aq6aYawQf9UR8SEmi8+3diC6vCNUcji5 SGT5AvxGNSzpGJOfnJlkYz1v1zOFh9A7/s5mDYC45FL0970ex4TB7bW31 p1vWMLkyH3xJvsFXHRJeD/yVtvjSr/FyJ4ArQWjwVfStGOz2p5OxHEjri s=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,203,1694728800"; d="scan'208";a="67879753" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 16:09:40 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: David Elsing Subject: Re: bug#66129: [PATCH 00/20] Split SuiteSparse into subpackages In-Reply-To: <875y3l6w97.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 05 Oct 2023 15:20:52 +0200") References: <875y3l6w97.fsf@gnu.org> Date: Thu, 05 Oct 2023 16:09:39 +0200 Message-ID: <87lech5ffg.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66129 Cc: 66129@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Court=C3=A8s skribis: > (define (suitesparse-package-source name directory) > (computed-file (string-append name "-" suitesparse-version ".tar.xz") > (with-imported-modules '((guix build utils)) > #~(begin > (use-modules (guix build utils)) > (copy-recursively > (string-append #$suitesparse-src "/" #$director= y) > #$output))))) Now that I think about it, we might just as well keep the same source for each sub-package along with a phase that does (chdir DIR). The advantage is that we would not spend CPU time and storage space building one tarball per package. The downside is that it might make package definitions less concise. Your call! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:33:31 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:33:32 +0000 Received: from localhost ([127.0.0.1]:48675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoVyN-0002QS-Is for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:33:31 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoVyI-0002Q9-Ez for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:33:30 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 17A7E240029 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:33:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541582; bh=aRXn4PrNY9OQMKzJBR5g+I/XzxRBb85FGuYV7Y8eRrI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=S3gN2TCzJWPSxx1jhVxX25tHabhmnUIR+p2vTS4dopmScjbL1TRMPh9FPo8Wnu+YH t6zfbSMPUsqJ/bfu0Qo89xjq4hzgnt/mCpjG9gIrqyLOw67Jaioq0mprf7VhkVXOdi J7cdBg4JDA11BVuiSUSRZS3HIejgo/MIvNpSEjsRH+Ql1xJ4eSBCTMLGfydd3bpiyV kDmoCYRg0QOUCriL8JkWyCbjND7KTw0yqNWF/JO6P2fFbwnhEhVG1C2QSZiRDzRT7f +BeS+3px1Z6lqqpDdgKp7BvWhuQgZzhZERd7i5L4N5/0LWnwRIona5z+qyVjX2xVOo 24dTG+THIzYOg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lCd2n2Yz6ty7; Thu, 5 Oct 2023 23:33:01 +0200 (CEST) From: David Elsing To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#66129: [PATCH 00/20] Split SuiteSparse into subpackages In-Reply-To: <87lech5ffg.fsf_-_@gnu.org> References: <875y3l6w97.fsf@gnu.org> <87lech5ffg.fsf_-_@gnu.org> Date: Thu, 05 Oct 2023 21:33:00 +0000 Message-ID: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: 66129@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s writes: Hello, > Now that I think about it, we might just as well keep the same source > for each sub-package along with a phase that does (chdir DIR). > > The advantage is that we would not spend CPU time and storage space > building one tarball per package. The downside is that it might make > package definitions less concise. I changed the packages to use the same source. With the autogenerated files removed, it is somewhat less unwieldy than the original checkout (90 MB instead of 165 MB). > Ludo=E2=80=99. Cheers, David From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:36:53 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:36:53 +0000 Received: from localhost ([127.0.0.1]:48680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1d-0002Ve-5o for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:53 -0400 Received: from mout02.posteo.de ([185.67.36.66]:38591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1Z-0002VI-F2 for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0C0C7240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541785; bh=5ZVY33KklUsThy0yDqxkibZfHMdcRKnpXj4EN+d58WU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=A5ualiwgv0D5KjrOcZs5VTQPgMnfdD2M4zLtuqsrl6Fhe6zEIs50nAjPV025pf/48 39UB5GADDK0RpTSWvQAQnaB5PvGDDysMKcqXIvaQIUvlX+aNGAg4tDwiDEHyFZM3y3 WjvokioIK50rfGXxAMjVBIti59AkfzFG5CeApEr6UFZ85mF6djd3oma0mht+0htSIS +IHNNggUMWE7Tirx/ySED1pFGQhmJCNto1gRWMCSMK/yVOM88OLcHfkLPwvW1jGIFD LBaTbHkrA/BZrJH2oATHANYQFh8fEP3VOtMhIBCuZk6M4ky+Zvu0zhp9sSIF26U34N jHXPlmOtHSW2g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHX1kwlz6txv; Thu, 5 Oct 2023 23:36:24 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 01/20] gnu: suitesparse: Tweak description. Date: Thu, 5 Oct 2023 21:34:44 +0000 Message-ID: <87f0342710c8193d576bdecd0d10a1f36b4a8a48.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse)[description]: Mention that all subpackages are included. --- gnu/packages/maths.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 27ca2d5f18..c796501e72 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5111,7 +5111,10 @@ (define-public suitesparse multifrontal QR; KLU and BTF, sparse LU factorization, well-suited for circuit simulation; ordering methods (AMD, CAMD, COLAMD, and CCOLAMD); CSparse and CXSparse, a concise sparse Cholesky factorization package; and many other -packages.") +packages. + +This package contains all of the above-mentioned parts. +") ;; LGPLv2.1+: ;; AMD, CAMD, BTF, COLAMD, CCOLAMD, CSparse, CXSparse, KLU, LDL ;; GPLv2+: -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:00 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:00 +0000 Received: from localhost ([127.0.0.1]:48691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1j-0002WJ-Fi for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1h-0002VZ-FL for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 67632240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541793; bh=5t5IxCQQiFUiKCQrSNL+AYB4CQc6Dr7ukLyuuA2gbf8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Pwh+20wR3Uoj9hv2XV3OvXmeaFQOqOww09QBGFhLA7/ITaAjfItXQ6KIqISa0mfb/ hhHtiSrpN6q5KZ14AN5nPhh0acByvnWUhaVv8wLxpSY+bHQP2xlsvWnucwMaZ1Xu4S /s6ZZGjr3bqn7n0OaEwDKiyhlv0BY/JeAezI1i1kAX2Z+21DffoBRe+2YdT7GGsNX4 LhxXNCXzU/EVNKDx0l5GLvUrWhbLu6S7/JR0GojEZFJnLmmO+fHkQRQVFzf7zbOEr7 jRIwiBAt3oMFAAHFiOm81luKXFQlVBdWzmNpkDbreq3hJyuLYvWyIREjeviL2dVpjX gLw1HCwbDPDOg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHj0G6Sz6tvc; Thu, 5 Oct 2023 23:36:33 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 03/20] gnu: Add suitesparse-amd. Date: Thu, 5 Oct 2023 21:34:46 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-amd): New variable. --- gnu/packages/maths.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 0dcd456a2e..2216cc67b8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5120,6 +5120,54 @@ (define-public suitesparse-config package contains a library with common configuration options.") (license license:bsd-3))) +(define-public suitesparse-amd + (package + (name "suitesparse-amd") + (version "3.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "AMD"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../AMD/Doc" + (invoke "make")))) + ;; Required for suitesparse-umfpack + (add-after 'install 'install-internal-header + (lambda _ + (install-file "../AMD/Include/amd_internal.h" + (string-append #$output "/include")))) + (add-after 'install-internal-header 'install-doc + (lambda _ + (install-file "../AMD/Doc/AMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../AMD/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs (list gfortran (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse matrix ordering for Cholesky factorization") + (description "AMD is a set of routines for ordering a sparse matrix prior +to Cholesky factorization (or for LU factorization with diagonal pivoting).") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:01 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:01 +0000 Received: from localhost ([127.0.0.1]:48697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1k-0002WY-Aj for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:01 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1g-0002VX-OM for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AB5CD240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541792; bh=ySnZPQdaXD+FJ07zt8JKpbiffZAK8tFTMIPXbHfQRPs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=HUNVnEzb+tYN/i6UkEXwD+ghEv3YCPJvD/Hco1jc8qY5VQxxOYYuAbuAICLBIuzj6 0vud4NKFunreDKUBO7n9KAufRT6Ron0e5aEvzI4zyreGtGY+mqoK46Ag5Hguzvr46D cvw6CpFt4pA4eP62JMgonGUlYaWKQDETVfbjMV75NNoU8K8jCwa7RjVlCb6HPaCv72 XU0jOXU2Rd6wTaohOhVgxQ7PQ75sq5+YbDwXPcWbtoVcH7X8DYs83N7ifamUPaBg/i iml3HJbYaOiz4Hpu6VxkhQH4MdOeHxMFmWsbZT3q/f1yiE/COpmw6i2ExnoyUk0l2W r+LyJQgty6u4Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHh29cfz6tvd; Thu, 5 Oct 2023 23:36:32 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 02/20] gnu: Add suitesparse-config. Date: Thu, 5 Oct 2023 21:34:45 +0000 Message-ID: <6da1d5a872da0741da2c225ae724e45decc6ac7a.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) The suitesparse-source variable contains the entire SuiteSparse source code, which is used for all subpackages. * gnu/packages/maths.scm (suitesparse-version, suitesparse-source, suitesparse-config): New variables. --- gnu/packages/maths.scm | 81 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index c796501e72..0dcd456a2e 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5039,6 +5039,87 @@ (define-public openspecfun ;; public domain software. (license (list license:expat license:public-domain)))) +;; Source for the modular SuiteSparse packages. When updating, also update the +;; (different) versions of the subpackages. +(define suitesparse-version "7.2.0") +(define suitesparse-source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DrTimothyAldenDavis/SuiteSparse") + (commit (string-append "v" suitesparse-version)))) + (file-name (git-file-name "suitesparse" suitesparse-version)) + (sha256 + (base32 + "1draljn8i46862drc6008cnb2zjpklf74j8c34jirjazzpf53kaa")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Delete autogenerated and bundled files + (for-each delete-file (find-files "." "\\.pdf$")) + ;; ssget + (delete-file-recursively "ssget") + ;; SuiteSparse_config + (delete-file "SuiteSparse_config/SuiteSparse_config.h") + ;; CHOLMOD + (delete-file-recursively "CHOLMOD/SuiteSparse_metis") + ; GraphBLAS + (delete-file "GraphBLAS/README.md") + (delete-file "GraphBLAS/Config/GB_config.h") + (delete-file "GraphBLAS/Config/GB_prejit.c") + (delete-file-recursively "GraphBLAS/cpu_features") + (delete-file "GraphBLAS/CUDA/GB_cuda_common_jitFactory.hpp") + (delete-file "GraphBLAS/JITpackage/GB_JITpackage.c") + (delete-file-recursively "GraphBLAS/lz4/lz4.c") + (delete-file-recursively "GraphBLAS/lz4/lz4.h") + (delete-file-recursively "GraphBLAS/lz4/lz4hc.c") + (delete-file-recursively "GraphBLAS/lz4/lz4hc.h") + (delete-file "GraphBLAS/GraphBLAS/Config/GB_config.h") + (delete-file "GraphBLAS/Tcov/PreJIT/GB_prejit.c") + (delete-file-recursively "GraphBLAS/Source/FactoryKernels") + (delete-file "GraphBLAS/Source/GB_AxB__include1.h") + (delete-file "GraphBLAS/xxHash/xxhash.h") + (delete-file-recursively "GraphBLAS/zstd/zstd_subset") + ;; KLU + (delete-file "KLU/Include/klu.h") + (delete-file "KLU/Doc/klu_version.tex") + ;; LDL + (delete-file "LDL/Include/ldl.h") + (delete-file "LDL/Doc/ldl_version.tex") + ;; RBio + (delete-file "RBio/Include/RBio.h") + ;; SPEX + (delete-file "SPEX/Include/SPEX.h") + (delete-file "SPEX/Doc/SPEX_version.tex") + ;; SPQR + (delete-file "SPQR/Include/SuiteSparseQR_definitions.h") + (delete-file "SPQR/Doc/spqr_version.tex") + ;; UMFPACK + (delete-file "UMFPACK/Include/umfpack.h") + (delete-file "UMFPACK/Doc/umfpack_version.tex"))))) + +(define-public suitesparse-config + (package + (name "suitesparse-config") + (version suitesparse-version) + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "SuiteSparse_config")))))) + (inputs (list openblas)) + (native-inputs (list pkg-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Configuration for all SuiteSparse packages") + (description "SuiteSparse is a suite of sparse matrix algorithms. This +package contains a library with common configuration options.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:05 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:05 +0000 Received: from localhost ([127.0.0.1]:48701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1l-0002Wn-7m for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1i-0002Vd-6j for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 226E6240027 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541794; bh=NRhXhauNALfcE0jDAXE2CCJIhk61A8OTqdZO/js6poo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=cBP3EG5eR5fC50sGenJer7+aMvW1CyhDs9ZTeGV6XmjVDSPTWrgVFcaCS8XJBMVxs KcCdT3IhLn20SRBHU0/sfYtxwoMOHzDM10ki+VBqUuVgaq/1z+6fpNIiHT2CZW7q/V SXi8c63pvhMiqDcnY89SNFjgAiUb6YZdLw1Qdz3U8fr7IUTJ0wyhazN0JBVRwsmabJ YgFyAUyHqkt5+uBuPP7GBGtVIfQ4brGLUpD9PVUwv0oXdgh+eRIur05JQCvQgT96b3 mrlY2uH8fxCQ67YXcTblttYbZRNlVu9CPn6PLLjZe/GD7zIFh4YyHn9TulDtVJADFS K8V0oeZ8HjZJQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHj5Nj9z6tvc; Thu, 5 Oct 2023 23:36:33 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 04/20] gnu: Add suitesparse-btf. Date: Thu, 5 Oct 2023 21:34:47 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-btf): New variable. --- gnu/packages/maths.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2216cc67b8..1b1a39688b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5168,6 +5168,39 @@ (define-public suitesparse-amd to Cholesky factorization (or for LU factorization with diagonal pivoting).") (license license:bsd-3))) +(define-public suitesparse-btf + (package + (name "suitesparse-btf") + (version "2.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "BTF"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../BTF/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for permuting matrices into block upper triangular form") + (description "BTF (Block Triangular Form) is a C library for permuting a +matrix into block upper triangular form.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:06 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:06 +0000 Received: from localhost ([127.0.0.1]:48715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1p-0002Y6-6F for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:06 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1i-0002VZ-9l for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 20D8B240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541798; bh=l2QGEWfJsHPv9LXeye+9LMerVkls6pFsJuApH/lL7Ns=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=WjbVvaBlXvqnhq/a8OfwboHd6EfJOWmT7ThGYDNC7Lk8IEIM+YAU6MaoJpKK7F/Ij kPuKquwTIUNqKdF2ajuVKNrpp4WT7saqvUDOfiDxLeiEg33mrcwAyIoks7GSNpmQVD z0dGc4mK6b66E/IioIm60qAXO4ozybdhWqIsN/AqGoJieeESl1o5fB23Nr6IKoHszp jtlmlacYAn6mtk0iz6hGXljx0RfPZCDq94ytLKLUq94bZbLcIcO7WdPd3UsxNLjTf2 7xc8DmXXEIRWJKYQ5NoMhLm3W1dsuiNK45BP5gi4T8w0VnCA6QIAXtJscfndsLJYaH F/tYqvxvpI0jw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHn4Zcwz9rxH; Thu, 5 Oct 2023 23:36:37 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 09/20] gnu: Add metis-5.2. Date: Thu, 5 Oct 2023 21:34:52 +0000 Message-ID: <5dd10e61fd6612e04353b474e5dcf134b27bb8d0.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (metis-5.2): New variable. --- gnu/packages/maths.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index cef899fc8a..76d770466f 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4381,6 +4381,7 @@ (define-public gklib software from KarypisLab, such as METIS.") (license license:asl2.0)))) +;; XXX: Remove once the full SuiteSparse package is replaced. (define-public metis (package (name "metis") @@ -4414,6 +4415,53 @@ (define-public metis schemes.") (license license:asl2.0))) ;As of version 5.0.3 +(define-public metis-5.2 + (package + (name "metis") + (version "5.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/METIS") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19vi1wsi2gp2m5vb715yfnzd2g7brm4r40qxg65ysrzgl13lpmvr")) + (snippet + #~(delete-file "manual/manual.pdf")))) + (build-system cmake-build-system) + (inputs (list gklib openblas)) + (arguments + (list + #:tests? #f ; Tests are not automatic + #:configure-flags + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib)) + #:phases + #~(modify-phases %standard-phases + ;; The original Makefile copies some files and invokes CMake. + (add-before 'configure 'prepare-cmake + (lambda _ + (substitute* "Makefile" + (("config: distclean") "config:") + (("BUILDDIR =.*") + "BUILDDIR = .\n") + ((".*cmake.*") "")) + (substitute* "CMakeLists.txt" + (("build/") "../source/")) + (invoke "make" "config")))))) + (home-page "http://glaros.dtc.umn.edu/gkhome/metis/metis/overview") + (synopsis "Graph partitioning and fill-reducing matrix ordering library") + (description + "METIS is a set of serial programs for partitioning graphs, partitioning +finite element meshes, and producing fill-reducing orderings for sparse +matrices. The algorithms implemented in METIS are based on the multilevel +recursive-bisection, multilevel k-way, and multi-constraint partitioning +schemes.") + (license license:asl2.0))) + (define-public p4est (package (name "p4est") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:06 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:07 +0000 Received: from localhost ([127.0.0.1]:48721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1q-0002YK-2e for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:06 -0400 Received: from mout02.posteo.de ([185.67.36.66]:57719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1j-0002Vl-3Q for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 096FA240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541795; bh=pjVjQKztvtRkH11PE9EUhBIZIgJ+SmuBnZpqJij/rzI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=OG6QcRZ9qQQsfNJv2UWXpPeOCEOgnlcN6j587k9pSjf96ZZIj15KNCLiOpUfBbTmE Fa1kYm9gXTyaLXv7tJLs5Y1kjAfEO41NjUNdaM3cgO3cxO6Nvbg/uXI91naH5LFX1G ukH+b7y8Z6zOwt5Akc4EsqfVHBqOSePjUmJuy+RL/Fjogs8Q7FajMMyQoKn54dtWIg KuoxgWCIE4pihgRxr23MAkFPaKGtz9+Injusxjr7yPsuNV7gMIhvMPQNo8K7BKPOcW 2+Z3zxNU4duiYjz0evROaD7soIcfP4MUG/QzI5QIJbJ4pK4mh3r0FWWzTEyqd2QSZq 9MmGLGFnjegxA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHk4Ctmz9rxL; Thu, 5 Oct 2023 23:36:34 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 05/20] gnu: Add suitesparse-camd. Date: Thu, 5 Oct 2023 21:34:48 +0000 Message-ID: <943f64252992493d9103981f2f5ae8fd8331d629.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-camd): New variable. --- gnu/packages/maths.scm | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1b1a39688b..e2c0492ccb 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5201,6 +5201,51 @@ (define-public suitesparse-btf matrix into block upper triangular form.") (license license:lgpl2.1+))) +(define-public suitesparse-camd + (package + (name "suitesparse-camd") + (version "3.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "CAMD"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../CAMD/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../CAMD/Doc/CAMD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../CAMD/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse matrix ordering for Cholesky factorization with constraints") + (description "CAMD is a set of routines for ordering a sparse matrix prior +to Cholesky factorization (or for LU factorization with diagonal pivoting). +It is a variant of AMD which has the the option to apply constraints to the +ordering.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:07 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:07 +0000 Received: from localhost ([127.0.0.1]:48725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1q-0002Yc-Si for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:07 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1j-0002VZ-8i for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6570F240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541800; bh=J3fYxWt0aFI82e0XzABoC5fpLCn/vJQseWzdu/ah98k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ezS2qJC4e5wjymfd2PnBoZQ7VsvBVllpiQ/KB7XpYsYfcXTCCW8OScRDAuPSs3mCx w7nG6YOtkHVmckaLivviy42vc5+yFaTlhnNPZk/Fp+7e4MHNvzXl0b1ANNywtO2YVN 4EX2/JsRn1GmjP0jFJvuyfJKYwUq0ZWfyjc1Oz2JslKcbwqf69liLUQyT9/88WeZdQ /7JqaE134jhULuSs5XV6TblIWBxwybqIy2jV+FP9I5jcvDklqYJ5bipG3UGMa6zOmr fhDi1PrPdEduKAINzIoffBsjDH+n7JWTFF34K5ggafmV8K2UMJNTapDCWuoBBKfvkA efSPmni3Mj31A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHr097Rz6tvc; Thu, 5 Oct 2023 23:36:40 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 12/20] gnu: Add suitesparse-cholmod. Date: Thu, 5 Oct 2023 21:34:55 +0000 Message-ID: <1649491d0950adcd3e86012a40a128c17169fef7.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-cholmod): New variable. --- gnu/packages/maths.scm | 85 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index e2018d4540..ad08f36931 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5448,6 +5448,91 @@ (define-public metis-suitesparse (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) (inputs (list suitesparse-config gklib-suitesparse)))) +(define-public suitesparse-cholmod + (package + (name "suitesparse-cholmod") + (version "4.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "CHOLMOD"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n")) + (("add_subdirectory.*GPU.*") "\n") + ((".*cmake_modules/FindCHOLMOD_CUDA.cmake.*") "\n")))) + (add-after 'chdir 'use-external-metis + (lambda _ + (let ((port (open-file "CMakeLists.txt" "a"))) + (display + (string-append + "find_library(METIS_LIBRARY NAME metis PATHS ENV LIBRARY_PATH) +get_filename_component(METIS_LIBRARY ${METIS_LIBRARY} REALPATH) +find_library(GKLIB_LIBRARY NAME GKlib PATHS ENV LIBRARY_PATH) +get_filename_component(GKLIB_LIBRARY ${GKLIB_LIBRARY} REALPATH) +target_link_libraries(CHOLMOD PRIVATE ${METIS_LIBRARY} ${GKLIB_LIBRARY}) +target_link_libraries(CHOLMOD_static PRIVATE ${METIS_LIBRARY} ${GKLIB_LIBRARY})") + port) + (close-port port)) + (delete-file "Partition/cholmod_metis_wrapper.c") + (delete-file "Partition/cholmod_metis_wrapper.h") + (substitute* "Partition/cholmod_metis.c" + (("#include \"cholmod_metis_wrapper\\.h\"") "") + (("#include \"SuiteSparse_metis/include/metis.h\"") + "#include ") + (("SuiteSparse_metis_METIS") "METIS")))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../CHOLMOD/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../CHOLMOD/Doc/CHOLMOD_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../CHOLMOD/Doc/License.txt" out) + (install-file "../CHOLMOD/Core/lesser.txt" out) + (install-file "../CHOLMOD/MatrixOps/gpl.txt" out))))))) + (inputs + (list gklib-suitesparse + metis-suitesparse + openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-colamd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for solving sparse symmetric positive definite linear +equations") + (description "CHOLMOD is a set of routins for factorizing sparse symmetrix +positive definite matrices, updating/downdating sparse Cholesky factorizations +and other related operations.") + (license (list license:gpl2+ license:lgpl2.1+)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:09 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:09 +0000 Received: from localhost ([127.0.0.1]:48727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1s-0002Yp-Hc for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1j-0002Vn-PE for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B24F3240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541795; bh=Z53/4YTfxUUpRT8zUTMsO7LqdMxpJ67CTddoHLKzhEQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=a0hKHYwGNwEcUsvugDcRTVTtnOsKKBRgbHzdvLnG6BejyHJZQxWt5blpPM9Iu5kfh CjXSahTS38GWHvQciGbmmcp3S3mvCwxLirTUO5Ju+Tb8RMDIRbkZ5eplcNPh0iqX8y X8Dw3gOs7Grz2L3MruMu2vk7PIdjDSrCKyX4UXsU5tO15KN1p3kiGg3tgykwtXB8Ku 4RQJEN3ZNRC0VZkpVk+iXrz3mDKv4x8+ia7BIm3xHHxO5Y0eawJPci/N5/sbBWAfrA tXYSW22pdT5pIPSJcApgeJjlm9oPPLF9lCeqXIZflJ5q5bwt8AHUOWPbXQQzktsMnP 5b3JeCRIxMg7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHl2dy0z9rxL; Thu, 5 Oct 2023 23:36:35 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 06/20] gnu: Add suitesparse-colamd. Date: Thu, 5 Oct 2023 21:34:49 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-colamd): New variable. --- gnu/packages/maths.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index e2c0492ccb..fade383ca7 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5246,6 +5246,39 @@ (define-public suitesparse-camd ordering.") (license license:bsd-3))) +(define-public suitesparse-colamd + (package + (name "suitesparse-colamd") + (version "3.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "COLAMD"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../COLAMD/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Column Approximate Minimum Degree Ordering") + (description "COLAMD is library for computing a permutation vector for a +matrix with which the LU factorization becomes sparser.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:09 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:09 +0000 Received: from localhost ([127.0.0.1]:48730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1t-0002Z2-4b for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1k-0002Vp-Gp for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:01 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 73B61240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541796; bh=0tFxqp7jVErgrhevtKbu11fxdyPjcbcwC+g5daOmKtE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=XVbjlsl9hKk4G/gIzPJCWECpOAJlwiyQKsZBFNZ563zm8jiiWa+7VfgZ0kUi8LONC 1ZTFspaR2gHwTVxSpF1TAwWBV7+PoSOG80SPJnQFj4djL60N67K0LnbRjchQxjfvn8 KNzGr0lEvDxa5Q7ishUSWbEBkNwts8OFmLjfB/vtQwaMTv3ySCbCleLzznkC0I0U70 PK7Gsl+OsHgoxJsZ17Pk1krbaKqYt6cY5Jxm5jAKuuc/U4sLJS90v4ZE4AvXslR0Pu li7G5NVyFvbfSCmeTh48TsTA6G+7Ht7T1P6iFHuStuBZzO6MOFA9LbCgZQfRB8+0Li G2R9ICe6BiIfQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHm0pC1z9rxK; Thu, 5 Oct 2023 23:36:36 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 07/20] gnu: Add suitesparse-ccolamd. Date: Thu, 5 Oct 2023 21:34:50 +0000 Message-ID: <820167c09777373cda5294f448b7908722e1beb6.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-ccolamd): New variable. --- gnu/packages/maths.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index fade383ca7..30d6351a0a 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5279,6 +5279,40 @@ (define-public suitesparse-colamd matrix with which the LU factorization becomes sparser.") (license license:bsd-3))) +(define-public suitesparse-ccolamd + (package + (name "suitesparse-ccolamd") + (version "3.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "CCOLAMD"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (install-file "../CCOLAMD/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Column Approximate Minimum Degree Ordering with constraints") + (description "CCOLAMD is library for computing a permutation vector for a +matrix with which the LU factorization becomes sparser. It is a variant of +COLAMD which has the the option to apply constraints to the ordering.") + (license license:bsd-3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:10 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:10 +0000 Received: from localhost ([127.0.0.1]:48732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1t-0002ZB-Kt for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:10 -0400 Received: from mout02.posteo.de ([185.67.36.66]:57719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1l-0002Vl-F0 for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:02 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9519B240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541802; bh=/gNFm5ii0ymmw4v1mqvzTgvgZOyWQ9uTzGifeG5Iv8M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ChvgtPpxlkZ/Tg1Q+0QiYxuqQbZAiegHMrBvSGjD/hYnUVZn7uwC4XMiC9kt0hsKQ 7yfxQSbgzeNWfSXBSbc+htYjyaLibPsVvY1sjrsIaTwWq/8AEri6FIlvWcc4gPk3aQ IiBBcn+hC/J8OiJVl/Gcgfj/F//6h2e/SllNX05PssKv9aGn2nS+CpbHITlLorQTdD 5buXw0uxsOjTyhDQnwVhTJpzEYDEB7Pp9YpGNNXTL9u7M1umKBgXLLb7sWmvivGQod +Hq5jx5/GYWEDwz3WpMKjfHmMHZknC1vo7avvIby7jWP2X0i2MWCJcQnGXVahyx08c 9HPSjWjpaRzWg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHt1Ltvz9rxQ; Thu, 5 Oct 2023 23:36:42 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 15/20] gnu: Add suitesparse-ldl. Date: Thu, 5 Oct 2023 21:34:58 +0000 Message-ID: <1804c0e57e4fc90037c0162b36f7638bed3c433a.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-ldl): New variable. --- gnu/packages/maths.scm | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 9e52207512..988bf28ac2 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5630,6 +5630,60 @@ (define-public suitesparse-klu for real and complex matrices.") (license license:lgpl2.1+))) +(define-public suitesparse-ldl + (package + (name "suitesparse-ldl") + (version "3.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "LDL"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "../LDL/Doc/Makefile" + (("\\.\\./\\.\\./BTF/Include/btf.h") + (string-append #$suitesparse-btf "/include/btf.h"))) + (with-directory-excursion "../LDL/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../LDL/Doc/ldl_userguide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../LDL/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list suitesparse-amd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "LDL' factorization method for sparse, symmetric matrices") + (description "This package contains a set of routines for computing the +LDL' factorization of sparse, symmetric matrices. Its focus lies on concise +code.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:13 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:13 +0000 Received: from localhost ([127.0.0.1]:48736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1x-0002ZZ-3l for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:13 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1l-0002Vq-97 for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:02 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3800B240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541797; bh=DUxg/yVu+HeE6EzxgfLgVH1xwcNROGG+BtftuakaMS8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=qGrbApuHKkozCOO3ufkucYOKF46vffBvIFoTlYthNXKpER3LUq907wvQdEoKz0Ijr HWnpJpbyXY29NPUvoWI//nH5k/2pqWcNm7kIPP2Vmb/gjeBgQUdn+FrZmtSh2ZKSCd pmyE/NVaj+HvQmbMzwxwmobNie2sE5oi347axeZcXyBp1CKS23MSkP3+u2491d1auN T5nqKKnN5yD/J1eNZvjvc1o6yHCMT9Si4OUCERg58dEi+DLWebALE/DUHXEYKJgb9h LpCtE0CV7g7BXyb3U/Y/fuR5Zj+qC5yaq1wWkRkfFa45MaP6RS4jjbax+GAuReJBWK U+1LivKlvKT3Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHm654sz9rxL; Thu, 5 Oct 2023 23:36:36 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 08/20] gnu: Add gklib. Date: Thu, 5 Oct 2023 21:34:51 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (gklib): New variable. --- gnu/packages/maths.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 30d6351a0a..cef899fc8a 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4344,6 +4344,42 @@ (define-public scotch-shared (define-public pt-scotch-shared (deprecated-package "pt-scotch-shared" pt-scotch)) +(define-public gklib + (let ((commit "8bd6bad750b2b0d90800c632cf18e8ee93ad72d7") + (revision "1")) + (package + (name "gklib") + (version (git-version "5.1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/GKlib") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "08k4zzyd7zsisdhfmnwz7zb9w3pzpgagyjq52mwk8i6sqajdxsdn")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DBUILD_SHARED_LIBS=ON" + #$@(if (target-x86?) + '() + '("-DNO_X86=1"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-march=native + (lambda _ + (substitute* "GKlibSystem.cmake" + (("-march=native") ""))))))) + (home-page "https://github.com/KarypisLab/GKlib") + (synopsis "Helper library for METIS") + (description + "GKlib is a library of various helper routines and frameworks used by +software from KarypisLab, such as METIS.") + (license license:asl2.0)))) (define-public metis (package -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:13 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:14 +0000 Received: from localhost ([127.0.0.1]:48738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1x-0002Zc-FN for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:13 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1m-0002Vp-Vi for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1EF19240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541804; bh=eiOoAbXOOUKqHfVXgqr6CtWSOKhzphawJz4kHm+OhIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=Uo0GRmSEJwViVMh06FOScIGRdGzV2J2MSI6ZkpTCNtrnxJ6Kq2EbIpf8/A9S7ZsON Ub88OkQoGI4/CQF4Ws9H8+05N1RK4htoQPISBpumcy/8IC6apf9IXej+pxVc8LYltu ZDHgqDYcjnMPu6MDzjG67z1p/OKhBKNPcMb4soM/ZPfM+xPs+SoojwV13JZngg2hjB 6l5S9Rt2eZWaQ/QNQWAhaXG+fERLH7kDUMBmk3Edxgv2F+HHr+S8ZuYjisQdrr43OR +sXZlx477AI9m1daOeHAyavbkQelJfhFj5q/0+RoQWUkQfzSP3rbZsT13YUtDngKxd 91LhHNhEqg1sQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHv52dFz9rxQ; Thu, 5 Oct 2023 23:36:43 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 17/20] gnu: Add suitesparse-mongoose. Date: Thu, 5 Oct 2023 21:35:00 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-mongoose): New variable. --- gnu/packages/maths.scm | 75 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2cb1f01358..9a013825de 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5722,6 +5722,81 @@ (define-public suitesparse-rbio for reading and writing sparse matrices in the Rutherford/Boeing format.") (license license:gpl2+))) +(define-public suitesparse-mongoose + (package + (name "suitesparse-mongoose") + (version "3.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "Mongoose"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + ;; XeLaTeX fails with .eps graphics + (with-directory-excursion "../Mongoose/Doc" + (for-each + (lambda (name) + (invoke "epstopdf" name)) + (find-files "Figures" "\\.eps$")) + (substitute* "Mongoose_UserGuide.tex" + (("\\.eps") ".pdf")) + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../Mongoose/Doc/Mongoose_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../Mongoose/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (native-inputs + (list texlive-epstopdf + (texlive-updmap.cfg + (list texlive-algorithmicx + texlive-booktabs + texlive-lastpage + texlive-multirow + texlive-pgf + texlive-caption + texlive-etoolbox + texlive-csquotes + texlive-fancybox + texlive-enumitem + texlive-microtype + texlive-cancel + texlive-sourcecodepro + texlive-xkeyval + texlive-fontspec + texlive-wasy + texlive-wasysym + texlive-float + texlive-tcolorbox + texlive-environ + texlive-xcolor + texlive-xetex + texlive-listings)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Graph partitioning library") + (description "Mongoose is a library for graph partitioning by computing +edge cuts using a coarsening and refinement framework.") + (license license:gpl3))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:14 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:14 +0000 Received: from localhost ([127.0.0.1]:48740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1x-0002Zj-So for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:14 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1n-0002W5-GN for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:04 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E2B9B240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541798; bh=chkAOVDLOZZpdCNoxYMsAqPweQ4MNK3Y1HKjzXOV5+U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=CBkk9mVVVXMx/j0TdzfAXS1vBJun9p8vV0EFoFPoZH8HmMA+fYAfVOqTiFcTrifTn MT7LQxLS420RCM/hvs+g8ZiR0pTVK+lceJApZR2a4nfpwZxwvbqrgA6FXTwwLW8L5q qlOlGjBLkDe1RX9rk2X8527aik2oS7YVr5zp4LUbCMLWAgm8nk4ZvSyyLwqCS4wFHg gjH0ZlxCphwz/JMks4r0QR6s35wzYsI/cj2T08fy+fZFiBA2KweWkFmPtD/c9LU5cg aEKUsRhGZzf57Lar4Ew086fW3p7lU280RxgaxKeilFbRepvHz2t7ua5gHW24rAlYcx G4x4nZWH7iVPA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHp3dc2z9rxL; Thu, 5 Oct 2023 23:36:38 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 10/20] gnu: Add gklib-suitesparse. Date: Thu, 5 Oct 2023 21:34:53 +0000 Message-ID: <62cc2ef0bb3d731697494694dabb74fe946d2fc0.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (gklib-suitesparse): New variable. --- gnu/packages/maths.scm | 25 ++++++++ gnu/packages/patches/gklib-suitesparse.patch | 65 ++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 gnu/packages/patches/gklib-suitesparse.patch diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 76d770466f..a096b24cfe 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5397,6 +5397,31 @@ (define-public suitesparse-ccolamd COLAMD which has the the option to apply constraints to the ordering.") (license license:bsd-3))) +(define-public gklib-suitesparse + (package/inherit gklib + (name "gklib-suitesparse") + (source (origin + (inherit (package-source gklib)) + (patches (cons + (search-patch + "gklib-suitesparse.patch") + (origin-patches (package-source gklib)))))) + (arguments + (substitute-keyword-arguments (package-arguments gklib) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'patch-cmake + (lambda _ + (substitute* "CMakeLists.txt" + (("add_library\\(GKlib.*" all) + (string-append + all + "target_link_libraries(GKlib PUBLIC" + " ${SUITESPARSE_CONFIG_LIBRARIES} m)\n"))))))))) + (inputs + (modify-inputs (package-inputs gklib) + (prepend suitesparse-config))))) + (define-public suitesparse (package (name "suitesparse") diff --git a/gnu/packages/patches/gklib-suitesparse.patch b/gnu/packages/patches/gklib-suitesparse.patch new file mode 100644 index 0000000000..8b6c708b6a --- /dev/null +++ b/gnu/packages/patches/gklib-suitesparse.patch @@ -0,0 +1,65 @@ +This patch contains the relevant changes to GKlib made in SuiteSparse +(CHOLMOD) for the version 7.2.0 +(https://github.com/DrTimothyAldenDavis/SuiteSparse/commit/8a7641cdb4809533c681417e94f98058c07c5da2). +The disabling of signal handling when MATLAB_MEX_FILE is defined is omitted. + +diff -ur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,6 +3,8 @@ + + option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF) + ++find_package ( SuiteSparse_config 7.1.0 REQUIRED ) ++ + get_filename_component(abs "." ABSOLUTE) + set(GKLIB_PATH ${abs}) + unset(abs) +diff -ur a/GKlib.h b/GKlib.h +--- a/GKlib.h ++++ b/GKlib.h +@@ -59,6 +59,24 @@ + #include + #endif + ++/* -------------------------------------------------------------------------- */ ++/* Added for incorporation into SuiteSparse. ++ Tim Davis, Oct 31, 2022, Texas A&M University. */ ++#include "SuiteSparse_config.h" ++#define malloc SuiteSparse_config_malloc ++#define calloc SuiteSparse_config_calloc ++#define realloc SuiteSparse_config_realloc ++#define free(p) \ ++{ \ ++ if ((p) != NULL) \ ++ { \ ++ SuiteSparse_config_free (p) ; \ ++ (p) = NULL ; \ ++ } \ ++} ++ ++/* -------------------------------------------------------------------------- */ ++ + + + +diff -ur a/memory.c b/memory.c +--- a/memory.c ++++ b/memory.c +@@ -108,6 +108,8 @@ + /*************************************************************************/ + int gk_malloc_init() + { ++ gkmcore = NULL; ++#if 0 + if (gkmcore == NULL) + gkmcore = gk_gkmcoreCreate(); + +@@ -115,6 +117,7 @@ + return 0; + + gk_gkmcorePush(gkmcore); ++#endif + + return 1; + } -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:14 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:14 +0000 Received: from localhost ([127.0.0.1]:48742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1y-0002Zr-Dr for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:14 -0400 Received: from mout01.posteo.de ([185.67.36.65]:33849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1n-0002W7-ON for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:04 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A763A240027 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541799; bh=0XrOBzYTvCj/21mlvg585BEQ7AqBdrLfZhREVmVq3F8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=QSGJE/lvKBe9oO7hVQ8PsMmx5MKg4fF4td82uvToTPmVj57+8xFGtjP0GXyQaG1Py tED7LH1oc+BDUWTPWnEJXxQfl3HFbSJSkcOjAS2me4W1vq9dDjgVyREX87YU+r7GrJ NBCVQeu2P3VNaAtQJoCwKpKM3kUiJG+lWpAhlDjp6kAqA40AniM2qAmxxiAitFbhgp by3oP1YNK/sPMX/mvg5BLFkoMaTHV0a/34SqcGzYbTgO35cxhZKSj1xCGWmuQ5ZbaQ A06bCPLvstIXJG/aIkqfGn90f/9cI3Mx6O5Aftj3ehgFlpqnYwqkszkl/LUbc489YD BMRrOQvwK4M9g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHq1q7mz9rxL; Thu, 5 Oct 2023 23:36:39 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 11/20] gnu: Add metis-suitesparse. Date: Thu, 5 Oct 2023 21:34:54 +0000 Message-ID: <24b9257141e62a20c5ab20943b496f6ba37f2687.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (metis-suitesparse): New variable. --- gnu/packages/maths.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a096b24cfe..e2018d4540 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5422,6 +5422,32 @@ (define-public gklib-suitesparse (modify-inputs (package-inputs gklib) (prepend suitesparse-config))))) +(define-public metis-suitesparse + (package/inherit metis-5.2 + (name "metis-suitesparse") + (arguments + (substitute-keyword-arguments (package-arguments metis-5.2) + ((#:phases phases) + #~(modify-phases #$phases + (add-before 'prepare-cmake 'set-idxwidth + (lambda _ + (substitute* "Makefile" + (("IDXWIDTH.*=.*") + "IDXWIDTH = \"\\#define IDXTYPEWIDTH 64\"\n")))) + (add-before 'prepare-cmake 'link-suitesparse-config + (lambda _ + (substitute* "programs/CMakeLists.txt" + (("include_directories.*" all) + (string-append + all "find_package(SuiteSparse_config REQUIRED)\n")) + (("(target_link_libraries.*)GKlib(.*)" _ start end) + (string-append + start "GKlib ${SUITESPARSE_CONFIG_LIBRARIES}" end))))))) + ((#:configure-flags _) + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) + (inputs (list suitesparse-config gklib-suitesparse)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:15 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:15 +0000 Received: from localhost ([127.0.0.1]:48744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1y-0002a2-PH for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1n-0002Vq-Mu for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CFABF240101 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541804; bh=K+pN6WAcj9J+O7YAbesH4vrclQYHGXQqnJC6MmViivU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=f2SwVgNim3ytZ86YiNe/xDGvUfKlHA2HW27C9jWIdHbNx8zOmiLF5qKHAoZQzorTr iblRnBZMTKTe4+HcstFNNqId1caxzqSZuVYP6mIUQF2hre5OJrc0WIh20huToCGe/U q0Ex26BTtjm4BGBgwOv/m0vddsVhtbpUMPyT3DyQz8uyj3BiR9WmVZrmoGpGCMET30 jcHPTEO2AqKQiJdkwd5tsazyPKt9CSo4aQCzi5OIYmosUPqKv6o4+3SlrBEAnMF1ij o6Mkom42PwCai9VC7Fuoe7QkSgFyFArscExktsxA+GrRK5DBCnyEyUw1QuYzw9cIoF bf2pnO99jUTGw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHw39Cpz9rxQ; Thu, 5 Oct 2023 23:36:44 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 18/20] gnu: Add suitesparse-spex. Date: Thu, 5 Oct 2023 21:35:01 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-spex): New variable. --- gnu/packages/maths.scm | 70 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 9a013825de..b41b2be6e9 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5797,6 +5797,76 @@ (define-public suitesparse-mongoose edge cuts using a coarsening and refinement framework.") (license license:gpl3))) +(define-public suitesparse-spex + (package + (name "suitesparse-spex") + (version "2.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "SPEX"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../SPEX/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../SPEX/Doc/SPEX_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list gmp + mpfr + suitesparse-amd + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-paralist + texlive-comment + texlive-psfrag + texlive-soul + texlive-multirow + texlive-algorithms + texlive-float + texlive-algorithmicx + texlive-cprotect + texlive-bigfoot + texlive-caption + texlive-listings + texlive-xcolor + texlive-framed + texlive-mdframed + texlive-etoolbox + texlive-zref + texlive-needspace)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Package for SParse EXact algebra") + (description "SPEX is a set of routines for sparse exact linear algebra. +It contains the SPEX Left LU library for computing a sparse exact left-looking +LU factorization for solving unsymmetric sparse linear systems.") + ;; Dual licensed. + (license (list license:lgpl3+ license:gpl2+)))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:15 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:15 +0000 Received: from localhost ([127.0.0.1]:48746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1z-0002a5-8O for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1p-0002Vp-4j for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:06 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4803A240103 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541806; bh=dUAPTpc+To/Sevp3oGnl0yPdebGBBsOeIEbEaBbf43Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=AAJ7P2Tb4HEAv+KbFlm7hJmc+Rg9ECIW5rwW4M9WzsyOFCx78iBLflCSOc3rp8YEY toPDANxNEc42V9TYTxFLw5k+pBrG9oHEy5OuVW3xZP0J9eZFojmVwsa2bLFuk2ByIE 2UTZzd0CxgtyA+XvSbqLEmmGZIhbfW7rthm9ieVDrm9O9Spu05Dpy4A4EvjK9rTK6h M0cxzh2j6yXsoRoZGXR6MU6O+9bQE6LG0qKS4UWK0/pFhseAP9lFbB8QnXboTlLUD5 A3k9aPeDSWNUqLV4sHVcYuRhQGXeRpPdD4Q91beMNJxcGV34+vQ51x3RCZSKVOHN0M DYMkHFIPx9FRg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHx6WLNz6tvc; Thu, 5 Oct 2023 23:36:45 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 20/20] gnu: Add suitesparse-umfpack. Date: Thu, 5 Oct 2023 21:35:03 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-umfpack): New variable. --- gnu/packages/maths.scm | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index fa0bd2d406..e648d43748 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5929,6 +5929,77 @@ (define-public suitesparse-spqr matrices.") (license license:gpl2+))) +(define-public suitesparse-umfpack + (package + (name "suitesparse-umfpack") + (version "6.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "UMFPACK"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../UMFPACK/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../UMFPACK/Doc/UMFPACK_UserGuide.pdf" outdir) + (install-file "../UMFPACK/Doc/UMFPACK_QuickStart.pdf" outdir)))) + (replace 'install-license-files + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../UMFPACK/Doc/License.txt" outdir) + (install-file "../UMFPACK/Doc/gpl.txt" outdir))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-etoolbox + texlive-framed + texlive-mdframed + texlive-needspace + texlive-xcolor + texlive-zref)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems via LU factorization") + (description "UMFPACK is a set of routines for solving unsymmetric sparse +linear systems using the Unsymmetric MultiFrontal method and direct sparse LU +factorization.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:16 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:16 +0000 Received: from localhost ([127.0.0.1]:48748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1z-0002aD-ND for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:16 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1p-0002WR-6h for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:06 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1D6F9240028 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541801; bh=4N20ZXo+VFDbLQqkHc8lLSjIwEtQFOzjHJ+jiYV3lYg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=EZygckkSybbSeMnfFk2LWLsG3xLsCwvQ16UKKx7n3w00YLALTlAe3FKMDEXn4PDQT CexUrwj/K09xMBX8FKcbVFDyUcfTNQC6VNZkuIRocHpQ0NcwVrb8WwG2oEKfkjbpD8 wXSZrCtbGDseDWdtRJynv7YnkZRzRKDuNjnHUqISBI1WhsQv+2iOrdIQ8sEZ4eLQqa L9HOTen4ayi4xwnhM5qtyOImlx7wQyEaq5kJMxsCLKHTQa/ijbidBbe5sWmgvBGQ70 fO1hqFkkuNWkGGDBTiCovONmAfXEcPa2hVX2MQ1qN/8yDfwHdpVHr8P4I4fS6Whjoa JJIoKmj8Hfr2w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHr5DdFz6tvc; Thu, 5 Oct 2023 23:36:40 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 13/20] gnu: Add suitesparse-cxsparse. Date: Thu, 5 Oct 2023 21:34:56 +0000 Message-ID: <05737981063c3d219e7b84555902122981f6440c.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-cxsparse): New variable. --- gnu/packages/maths.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index ad08f36931..b2da54239f 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5533,6 +5533,40 @@ (define-public suitesparse-cholmod and other related operations.") (license (list license:gpl2+ license:lgpl2.1+)))) +(define-public suitesparse-cxsparse + (package + (name "suitesparse-cxsparse") + (version "4.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "CXSparse"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append "set(CMAKE_MODULE_PATH " + #$suitesparse-config "/lib/cmake/SuiteSparse)\n" + "set(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../CXSparse/Doc/License.txt" out) + (install-file "../CXSparse/Doc/lesser.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Concise eXtended Sparse Matrix Package") + (description "CXSparse is a collection of sparse matrix algorithms for +direct methods on both real and complex matrices.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:16 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:16 +0000 Received: from localhost ([127.0.0.1]:48750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW20-0002aK-3v for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:16 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1p-0002Wf-V3 for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D9662240027 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541801; bh=TNDCetoHG9YYtM3R4gkAIBzt5hZuD47V8aP0Xi/djTg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=PivfgiTD2zDnD57vK+xAJT91IRlGF6n3m7OaHoC6clH1KtPF2ETQW6F8ODzdJ8Om1 4R7nT+d+kfRooqM0Il1rsH/XHxs/PJHdkjgHL/xmZETvuBHWwoIDZK01mpyQZWdM9J K+JgwxYR22bYDzgwaxTs680M92GDta/09OgD4rsm4etiF5jCuIhm5KLRHEgnP4AqTP 2pm7nAxJMFSF5f3pPRtsZX/00leqD3Ur204z8gEm/3FMfZNtHAy6XRY4oCnT6autC5 r3jbCapbBeJ4I2JfjGfdSYptM8/3L93ekMrhvDZdbJNZXTh+pohyIytBSWAh5iV2gJ G33/GbpYjZaig== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHs36T0z9rxP; Thu, 5 Oct 2023 23:36:41 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 14/20] gnu: Add suitesparse-klu. Date: Thu, 5 Oct 2023 21:34:57 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-klu): New variable. --- gnu/packages/maths.scm | 63 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b2da54239f..9e52207512 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5567,6 +5567,69 @@ (define-public suitesparse-cxsparse direct methods on both real and complex matrices.") (license license:lgpl2.1+))) +(define-public suitesparse-klu + (package + (name "suitesparse-klu") + (version "2.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "KLU"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-btf + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (substitute* "../KLU/Doc/Makefile" + (("\\.\\./\\.\\./BTF/Include/btf.h") + (string-append #$suitesparse-btf "/include/btf.h"))) + (with-directory-excursion "../KLU/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../KLU/Doc/KLU_UserGuide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../KLU/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list suitesparse-amd + suitesparse-btf + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs (list (texlive-updmap.cfg '()))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems with a LU factorization") + (description "KLU is a method for computing the LU factorization of sparse +for real and complex matrices.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:17 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:17 +0000 Received: from localhost ([127.0.0.1]:48752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW20-0002aS-JG for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:16 -0400 Received: from mout01.posteo.de ([185.67.36.65]:33593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1r-0002X3-Dv for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 58FD4240028 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541803; bh=kU/59wtXys/xiaMseXv7cmces7aWYwZaQpf66eyNyPs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=LtaULI6ye+qHJaEoj6cAt0GwBeLsO3nC6nCqjfKIy5/4rqeIwi1zNLZUEcfnBC7K7 CC3ScGXIudVLTQpzwdLxjYM4w/ik88voW+aormSxHi0Oz2OngQvVYs4ndbVkNf/ts4 pOuFwCErQLY3PlFrydxk43gqLrBHIjo5nDQ4z1dPMs+wcOGcArFrh47Ci86mINyjW0 8Js3DSapB13sUH4kXuHnjfLneYdT7rnWwJHNR58F/FbX/tYVXZXsc43DBWZb3DO8pM Fsjs/G80L1sXUdC4pLJxPefTYHTk3PxcPlRzuFVrVaR+EdgAPmaCZzLCUmdZ8xanqA JJeRmONUMqjyg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHt6hnkz9rxQ; Thu, 5 Oct 2023 23:36:42 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 16/20] gnu: Add suitesparse-rbio. Date: Thu, 5 Oct 2023 21:34:59 +0000 Message-ID: <04c0796fdb0b6afc6c68eae4aafcbdd5d9e34a1b.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-rbio): New variable. --- gnu/packages/maths.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 988bf28ac2..2cb1f01358 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5684,6 +5684,44 @@ (define-public suitesparse-ldl code.") (license license:lgpl2.1+))) +(define-public suitesparse-rbio + (package + (name "suitesparse-rbio") + (version "4.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "RBio"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../RBio/Doc/License.txt" out) + (install-file "../RBio/Doc/gpl.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for the Rutherford/Boeing sparse matrix format") + (description "This package provides the C library of RBio. It can be used +for reading and writing sparse matrices in the Rutherford/Boeing format.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 17:37:17 2023 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:17 +0000 Received: from localhost ([127.0.0.1]:48754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW21-0002aZ-0B for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:17 -0400 Received: from mout01.posteo.de ([185.67.36.65]:38147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1t-0002Xx-R0 for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8EB95240027 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541805; bh=RD6ekbPPI6QL7XyIHfRgwdFKYVmvS28AsPR4ax+AVDk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=KbJSTFwwGdCqitN9tHtbIXE5CDXNmvPYrnqgjYcvKEKmAcgPVTsDLbQSV0d++fyzf BxQGuYPZuWuI1dNo4inwGCoF9Jfg/DZp9qoDhlBwAbDcziNoedlJUZrfxvz53AHnBe yOELvAmBLWI3yV6UoYYMp5gFEjyr1Bfvgw/ikDE/a1NM/57o6XhjtA8y3EnCKSwaav mD4ZF18sIoJp/bupBFRVGvfUP4vgaiDesNZAUQzJmCKRGdpp9UJ5j4AzCW8gzfcKKn CBzo+1k3nlZ/r7Jngw5IiYsGEq4wbwIzN7uxiCVE0BaiEw3h1Ro4v8c5A16jIHIyoy tjsyPBqGJzERg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHx1HBGz6tvd; Thu, 5 Oct 2023 23:36:45 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH v3 19/20] gnu: Add suitesparse-spqr. Date: Thu, 5 Oct 2023 21:35:02 +0000 Message-ID: <580f0ce4bdf76aef46b5bcf611f0e12ebeb566cc.1696541452.git.david.elsing@posteo.net> In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-spqr): New variable. --- gnu/packages/maths.scm | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b41b2be6e9..fa0bd2d406 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5867,6 +5867,68 @@ (define-public suitesparse-spex ;; Dual licensed. (license (list license:lgpl3+ license:gpl2+)))) +(define-public suitesparse-spqr + (package + (name "suitesparse-spqr") + (version "4.2.0") + (source suitesparse-source) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "SPQR"))) + (add-after 'chdir 'set-cmake-module-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set.*CMAKE_MODULE_PATH.*") + (string-append + "set(CMAKE_MODULE_PATH " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../SPQR/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (install-file "../SPQR/Doc/spqr_user_guide.pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version)))) + (replace 'install-license-files + (lambda _ + (install-file "../SPQR/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-epsf)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Sparse QR factorization method") + (description "The SPQR (SuiteSparseQR) package provides sparse QR +factorization based on the multifrontal method, using BLAS for the frontal +matrices.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 06 06:31:32 2023 Received: (at 66129-done) by debbugs.gnu.org; 6 Oct 2023 10:31:32 +0000 Received: from localhost ([127.0.0.1]:49313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoi7H-0002GI-Rq for submit@debbugs.gnu.org; Fri, 06 Oct 2023 06:31:32 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:64577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoi7C-0002Fx-Em for 66129-done@debbugs.gnu.org; Fri, 06 Oct 2023 06:31:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=tytmVP/7TQL2Wfrto1YyinAtLjEkh0pY606Qer880sc=; b=LNE+Ia2psAAYPnTAPsDJmXJc96Rt96Ll8Qvs5uyIuUvoV9pmCmUiPetr apB6EZrWAuo9RMfXxf6fiqePvwm3fTx8kXmVXsTJxDNpSXOrqx35nto+S CB7oVwPaOPAABnF4Zid9RHFXv5kvohDfPLh3j/YmrpsrW/IrxdPxyH3IE A=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,203,1694728800"; d="scan'208";a="67959163" Received: from unknown (HELO ribbon) ([193.50.110.157]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2023 12:31:01 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: David Elsing Subject: Re: bug#66129: [PATCH 00/20] Split SuiteSparse into subpackages In-Reply-To: <7ylecgah6b.fsf@posteo.net> (David Elsing's message of "Thu, 05 Oct 2023 21:33:00 +0000") References: <875y3l6w97.fsf@gnu.org> <87lech5ffg.fsf_-_@gnu.org> <7ylecgah6b.fsf@posteo.net> Date: Fri, 06 Oct 2023 12:31:00 +0200 Message-ID: <87ttr4yrdn.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66129-done Cc: 66129-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi David, David Elsing skribis: > I changed the packages to use the same source. With the autogenerated > files removed, it is somewhat less unwieldy than the original checkout > (90 MB instead of 165 MB). Awesome. I pushed the whole series as 1b5067c0d002c5d019ab69c5fbc22fac68acda3d. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 02:59:08 2023 Received: (at 66129) by debbugs.gnu.org; 19 Oct 2023 06:59:08 +0000 Received: from localhost ([127.0.0.1]:35713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtMzr-0003IA-G1 for submit@debbugs.gnu.org; Thu, 19 Oct 2023 02:59:07 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:16280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtMzo-0003Hd-Lo for 66129@debbugs.gnu.org; Thu, 19 Oct 2023 02:59:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=76NmvpipkKYjj9cJ0hu9k/rkSFQJSMRA8Ro6chCQPDw=; b=QL9ebizYDYtnsNo+W2HntMnnzNpb71NcxEtGL+vv6B3k57bc7OkpjICe eAkg9ZdzRW0ZWU5c5XhbOO7F98DMgmhyEcBaNQ/ZNTSgYksl/w8R8cMDH TG0PC+Rw5lv9S5/fUOOooWTUHwCfGnpdjYYFJKaXHD+48fUSCMGykcgYR A=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,236,1694728800"; d="scan'208";a="132023355" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2023 08:58:32 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: David Elsing Subject: Re: [bug#66129] [PATCH v3 03/20] gnu: Add suitesparse-amd. In-Reply-To: (David Elsing's message of "Thu, 5 Oct 2023 21:34:46 +0000") References: <7ylecgah6b.fsf@posteo.net> Date: Thu, 19 Oct 2023 08:58:31 +0200 Message-ID: <87h6mn3xpk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: 66129@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi David, David Elsing skribis: > +(define-public suitesparse-amd > + (package > + (name "suitesparse-amd") [...] > + (inputs (list suitesparse-config)) One issue that I discovered is that, most of the time, dependencies on other SuiteSparse packages should be propagated because headers include one another. For example, public headers of =E2=80=98suitesparse-amd=E2=80=99 include th= ose from =E2=80=98suitesparse-config=E2=80=99: --8<---------------cut here---------------start------------->8--- $ grep config $(guix build suitesparse-amd)/include/*.h /gnu/store/kiq1bwzx4dlmmpqv14l9crqrjwigmgns-suitesparse-amd-3.2.0/include/a= md.h:#include "SuiteSparse_config.h" --8<---------------cut here---------------end--------------->8--- We should check and probably change most =E2=80=98inputs=E2=80=99 to =E2=80=98propagated-inputs=E2=80=99. Could you take a look? TIA, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 18:30:40 2023 Received: (at 66129) by debbugs.gnu.org; 19 Oct 2023 22:30:40 +0000 Received: from localhost ([127.0.0.1]:38044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtbXL-0007Bo-Tc for submit@debbugs.gnu.org; Thu, 19 Oct 2023 18:30:40 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtbXH-0007BW-2R for 66129@debbugs.gnu.org; Thu, 19 Oct 2023 18:30:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C2AF2240101 for <66129@debbugs.gnu.org>; Fri, 20 Oct 2023 00:30:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1697754601; bh=j0qUNBBXXt1ONs6xLkCKUzkZn0HNzvlOJyGdOj+U6nQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=B3JgfYkZnZ9rP4gvwMHxXiBeFaWfapA/lWkrBQ8EfXvewTveseE0nRMmBbFwKrSI1 wD7FilCi+G9a6o6P4RWN8hnwR95SQipTIlvB2DJUgToehuSYG54s9lWoRM7GtLcrGg 0/2lfEkpCHwDOynFFyhPPVwZ3fbxnDM9ZEcHXU+o1l75MODmsu+al96HlfSoxlLhqs KVuVxk+vTbi0DgVQtcU3ZMKcWVYCKGUCAxJq8m72xz37KErMEz+1F5UlmtoG6B65an 71kDk+5/KqQT21jlcNPSPpjRSOhJZMQEs8MLw1ffPrg8hpYmVIRwD2x9cBVkBRGvaT vjcBR/H23OYzw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SBMpx0MXdz6tn4; Fri, 20 Oct 2023 00:30:00 +0200 (CEST) From: David Elsing To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#66129] [PATCH v3 03/20] gnu: Add suitesparse-amd. In-Reply-To: <87h6mn3xpk.fsf@gnu.org> References: <7ylecgah6b.fsf@posteo.net> <87h6mn3xpk.fsf@gnu.org> Date: Thu, 19 Oct 2023 22:29:58 +0000 Message-ID: <868r7ygs9l.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: 66129@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s writes: > Hi David, Hi, > We should check and probably change most =E2=80=98inputs=E2=80=99 to > =E2=80=98propagated-inputs=E2=80=99. yes I agree. Before, I put all packages searched for in the CMakeLists.txt file into 'inputs'. Of these, I now moved the packages referenced in the header files into 'propagated-inputs'. > TIA, > Ludo=E2=80=99. Cheers, David From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 18:32:02 2023 Received: (at 66129) by debbugs.gnu.org; 19 Oct 2023 22:32:02 +0000 Received: from localhost ([127.0.0.1]:38049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtbYf-0007En-Bp for submit@debbugs.gnu.org; Thu, 19 Oct 2023 18:32:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]:46337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtbYc-0007Di-G9 for 66129@debbugs.gnu.org; Thu, 19 Oct 2023 18:32:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0AC4F240101 for <66129@debbugs.gnu.org>; Fri, 20 Oct 2023 00:31:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1697754686; bh=LyB/JB/6Xi9hu7uP/6pPHBi+MxGfeNZPwv3//eOLVoA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=owrJi+Y1eBiMiYdl/lgV3oJH6rrEYDiYjqlIuOKEeDV5db5uQzrgDX4JRP7c3HrMM 3yX6OA7RqfGzDvN67jtKfBIqTlZWKUcioQ1++H5+I/P6xXaNDsj8UlW3SC7tq/yMyj K/DtSlGLYoO5Of7MfhsYLPD9EvtNP+DN0qS2XVmUFHjPyLAyA/gmuUWawoidAJXA2u m+DY/5Jhn3nNbZvlfLfXAst4Qx4WsePCkHDYL66A98HlkyFjJNyx2QAqJe0NZu7bqm 3ydOYGYAU32KiE9RGSuwJ1ac2ZGLTGLx3lGh7nCjkcs2m7gBa/Gln/InIrOIS4xq0R 6Q3ua7Em+nQ3A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SBMrY4fQVz6tx9; Fri, 20 Oct 2023 00:31:25 +0200 (CEST) From: David Elsing To: 66129@debbugs.gnu.org Subject: [PATCH] gnu: Propagate suitesparse-* inputs referenced in header files. Date: Thu, 19 Oct 2023 22:31:17 +0000 Message-ID: <20231019223117.30879-1-david.elsing@posteo.net> In-Reply-To: <868r7ygs9l.fsf@posteo.net> References: <868r7ygs9l.fsf@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 66129 Cc: David Elsing X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/maths.scm (suitesparse-amd, suitesparse-btf, suitesparse-camd, suitesparse-colamd, suitesparse-ccolamd, gklib-suitesparse, suitesparse-cholmod, suitesparse-cxsparse, suitesparse-klu, suitesparse-ldl, suitesparse-rbio, suitesparse-mongoose, suitesparse-spex, suitesparse-spqr, suitesparse-umfpack)[inputs]: Move relevant suitesparse-* packages ... [propagated-inputs]: ... to here. --- gnu/packages/maths.scm | 75 +++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 41 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 683acd96e1..8fba8beaa8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5283,7 +5283,7 @@ (define-public suitesparse-amd (install-file "../AMD/Doc/License.txt" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs (list suitesparse-config)) + (propagated-inputs (list suitesparse-config)) (native-inputs (list gfortran (texlive-updmap.cfg '()))) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Sparse matrix ordering for Cholesky factorization") @@ -5317,7 +5317,7 @@ (define-public suitesparse-btf (install-file "../BTF/Doc/License.txt" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs (list suitesparse-config)) + (propagated-inputs (list suitesparse-config)) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Library for permuting matrices into block upper triangular form") (description "BTF (Block Triangular Form) is a C library for permuting a @@ -5359,7 +5359,7 @@ (define-public suitesparse-camd (install-file "../CAMD/Doc/License.txt" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs (list suitesparse-config)) + (propagated-inputs (list suitesparse-config)) (native-inputs (list (texlive-updmap.cfg '()))) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Sparse matrix ordering for Cholesky factorization with constraints") @@ -5395,7 +5395,7 @@ (define-public suitesparse-colamd (install-file "../COLAMD/Doc/License.txt" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs (list suitesparse-config)) + (propagated-inputs (list suitesparse-config)) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Column Approximate Minimum Degree Ordering") (description "COLAMD is library for computing a permutation vector for a @@ -5428,7 +5428,7 @@ (define-public suitesparse-ccolamd (install-file "../CCOLAMD/Doc/License.txt" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs (list suitesparse-config)) + (propagated-inputs (list suitesparse-config)) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Column Approximate Minimum Degree Ordering with constraints") (description "CCOLAMD is library for computing a permutation vector for a @@ -5457,9 +5457,7 @@ (define-public gklib-suitesparse all "target_link_libraries(GKlib PUBLIC" " ${SUITESPARSE_CONFIG_LIBRARIES} m)\n"))))))))) - (inputs - (modify-inputs (package-inputs gklib) - (prepend suitesparse-config))))) + (propagated-inputs (list suitesparse-config)))) (define-public metis-suitesparse (package/inherit metis-5.2 @@ -5561,8 +5559,8 @@ (define-public suitesparse-cholmod suitesparse-amd suitesparse-camd suitesparse-ccolamd - suitesparse-colamd - suitesparse-config)) + suitesparse-colamd)) + (propagated-inputs (list suitesparse-config)) (native-inputs (list (texlive-updmap.cfg '()))) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Library for solving sparse symmetric positive definite linear @@ -5599,7 +5597,7 @@ (define-public suitesparse-cxsparse "/share/doc/" #$name "-" #$version))) (install-file "../CXSparse/Doc/License.txt" out) (install-file "../CXSparse/Doc/lesser.txt" out))))))) - (inputs (list suitesparse-config)) + (propagated-inputs (list suitesparse-config)) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Concise eXtended Sparse Matrix Package") (description "CXSparse is a collection of sparse matrix algorithms for @@ -5655,13 +5653,14 @@ (define-public suitesparse-klu (string-append #$output "/share/doc/" #$name "-" #$version))))))) (inputs - (list suitesparse-amd - suitesparse-btf - suitesparse-camd + (list suitesparse-camd suitesparse-ccolamd - suitesparse-cholmod suitesparse-colamd suitesparse-config)) + (propagated-inputs + (list suitesparse-amd + suitesparse-btf + suitesparse-cholmod)) (native-inputs (list (texlive-updmap.cfg '()))) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Routines for solving sparse linear problems with a LU factorization") @@ -5712,9 +5711,8 @@ (define-public suitesparse-ldl (install-file "../LDL/Doc/License.txt" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs - (list suitesparse-amd - suitesparse-config)) + (inputs (list suitesparse-amd)) + (propagated-inputs (list suitesparse-config)) (native-inputs (list (texlive-updmap.cfg '()))) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "LDL' factorization method for sparse, symmetric matrices") @@ -5754,7 +5752,7 @@ (define-public suitesparse-rbio "/share/doc/" #$name "-" #$version))) (install-file "../RBio/Doc/License.txt" out) (install-file "../RBio/Doc/gpl.txt" out))))))) - (inputs (list suitesparse-config)) + (propagated-inputs (list suitesparse-config)) (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") (synopsis "Library for the Rutherford/Boeing sparse matrix format") (description "This package provides the C library of RBio. It can be used @@ -5803,7 +5801,7 @@ (define-public suitesparse-mongoose (install-file "../Mongoose/Doc/License.txt" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs (list suitesparse-config)) + (propagated-inputs (list suitesparse-config)) (native-inputs (list texlive-epstopdf (texlive-updmap.cfg @@ -5872,12 +5870,8 @@ (define-public suitesparse-spex (install-file "../SPEX/Doc/SPEX_UserGuide.pdf" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs - (list gmp - mpfr - suitesparse-amd - suitesparse-colamd - suitesparse-config)) + (inputs (list suitesparse-amd suitesparse-colamd)) + (propagated-inputs (list gmp mpfr suitesparse-config)) (native-inputs (list (texlive-updmap.cfg (list texlive-paralist @@ -5950,14 +5944,13 @@ (define-public suitesparse-spqr (install-file "../SPQR/Doc/License.txt" (string-append #$output "/share/doc/" #$name "-" #$version))))))) - (inputs - (list openblas - suitesparse-amd - suitesparse-camd - suitesparse-ccolamd - suitesparse-cholmod - suitesparse-colamd - suitesparse-config)) + (inputs (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-colamd + suitesparse-config)) + (propagated-inputs (list suitesparse-cholmod)) (native-inputs (list (texlive-updmap.cfg (list texlive-epsf)))) @@ -6016,13 +6009,13 @@ (define-public suitesparse-umfpack #$name "-" #$version))) (install-file "../UMFPACK/Doc/License.txt" outdir) (install-file "../UMFPACK/Doc/gpl.txt" outdir))))))) - (inputs - (list openblas - suitesparse-amd - suitesparse-camd - suitesparse-ccolamd - suitesparse-cholmod - suitesparse-colamd + (inputs (list openblas + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd)) + (propagated-inputs + (list suitesparse-amd suitesparse-config)) (native-inputs (list (texlive-updmap.cfg -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 04:40:03 2023 Received: (at 66129) by debbugs.gnu.org; 20 Oct 2023 08:40:03 +0000 Received: from localhost ([127.0.0.1]:38590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtl35-0006zn-CE for submit@debbugs.gnu.org; Fri, 20 Oct 2023 04:40:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtl33-0006zE-0R for 66129@debbugs.gnu.org; Fri, 20 Oct 2023 04:40:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtl2V-00055x-RM; Fri, 20 Oct 2023 04:39:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ioGNR2Et9OrmzIBbdwIX+WoWdWxS1E1cU4NzGza1NRs=; b=E97MbHFEVjvCn40Zzb31 LlZx+S9dXrImIPYykR7Jt18vodW4KeRP19IoShRVN/ABzl9nyWZPe3rFwJ7Jxkz6iujx19ajAxnBA gciPKX8Sa6iCpCiKiFXKJiaoXVBjHzBCn9xptSz39f6eAk9BOrQ2EfzYfNKGJIqV2z1Igg3nQWGdP rcBMef8l9U9l8JRztflsHK3AL8Be7LOFwJ9wuDtENEFPIkZIReo6noqxLlGVrKUoZQLcNYguT+C/O qD1wXbcNOkpccdvtVZhrcH7V0vID9CluJFOfRy60df/5MDqkLM7mWVN66KsSS1l6Gbj9j/Z3uHebO stF5F0Z1BUylZw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: David Elsing Subject: Re: [bug#66129] [PATCH] gnu: Propagate suitesparse-* inputs referenced in header files. In-Reply-To: <20231019223117.30879-1-david.elsing@posteo.net> (David Elsing's message of "Thu, 19 Oct 2023 22:31:17 +0000") References: <868r7ygs9l.fsf@posteo.net> <20231019223117.30879-1-david.elsing@posteo.net> Date: Fri, 20 Oct 2023 10:39:22 +0200 Message-ID: <87mswdvgat.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66129 Cc: 66129@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, David Elsing skribis: > * gnu/packages/maths.scm (suitesparse-amd, suitesparse-btf, suitesparse-c= amd, > suitesparse-colamd, suitesparse-ccolamd, gklib-suitesparse, > suitesparse-cholmod, suitesparse-cxsparse, suitesparse-klu, suitesparse-l= dl, > suitesparse-rbio, suitesparse-mongoose, suitesparse-spex, suitesparse-spq= r, > suitesparse-umfpack)[inputs]: Move relevant suitesparse-* packages ... > [propagated-inputs]: ... to here. Applied, thanks! (Next time please create a separate issue to make sure we keep track of it.) Ludo=E2=80=99. From unknown Mon Jun 23 18:28:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 17 Nov 2023 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator