From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BDB9815811D for ; Tue, 20 Jun 2023 00:02:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0A4EE086E; Tue, 20 Jun 2023 00:02:43 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B9823E086E for ; Tue, 20 Jun 2023 00:02:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E4C9340FA7 for ; Tue, 20 Jun 2023 00:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26AEEA9E for ; Tue, 20 Jun 2023 00:02:40 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1687219276.16e30baf4d8dc6e4f6ef13eee5f9112545ad2cc4.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cholmod/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/cholmod/Manifest sci-libs/cholmod/cholmod-4.0.3.ebuild sci-libs/cholmod/metadata.xml X-VCS-Directories: sci-libs/cholmod/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 16e30baf4d8dc6e4f6ef13eee5f9112545ad2cc4 X-VCS-Branch: master Date: Tue, 20 Jun 2023 00:02:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fd1442a8-23b3-4a11-b6d3-f680fe3ed69d X-Archives-Hash: 5231445c2f001277b47c263bad901317 commit: 16e30baf4d8dc6e4f6ef13eee5f9112545ad2cc4 Author: François Bissey gmail com> AuthorDate: Mon Jun 5 21:37:53 2023 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Tue Jun 20 00:01:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16e30baf sci-libs/cholmod: add 4.0.3 Signed-off-by: François Bissey gmail.com> Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/cholmod/Manifest | 1 + sci-libs/cholmod/cholmod-4.0.3.ebuild | 92 +++++++++++++++++++++++++++++++++++ sci-libs/cholmod/metadata.xml | 12 ++++- 3 files changed, 104 insertions(+), 1 deletion(-) diff --git a/sci-libs/cholmod/Manifest b/sci-libs/cholmod/Manifest index 1630f80a5d08..cf3192387aab 100644 --- a/sci-libs/cholmod/Manifest +++ b/sci-libs/cholmod/Manifest @@ -1,2 +1,3 @@ +DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e DIST cholmod-3.0.13.tar.bz2 696002 BLAKE2B 40a065fe1a3585897b3ca554a25fa80ffc68ac70798f2f803e34a231ec4f532d113a3d00ab7ab61f5eb02503a84e1459cdb7e96cb0b0d1dc6975ed3d533104fe SHA512 c6c80d099386bac27e385a1b8ee8941cd2fb4f2dcfcf302b4b17d6477ac9ee17ad8030aae9191f92576dfaeb521e2c98ec24e867281c2405e42f95580e14f0ab DIST cholmod-3.0.14.tar.bz2 696981 BLAKE2B 855927c18833235b3f0835bfba455d83957b9161c0ee885c2d31d126f0f473067f55bcf2cfa163c72efb5de573589ffa54b484a8cf89bc44c9dbf64d43fda5d9 SHA512 f8c12fc3c8787be38bca6c6f84a8279c1380fbe4fabbfba754235fdb042d7050bfb7b5a21ea87ef59dbd5184d28e8cb7667966c38f5dcad78fe8d47111896a3c diff --git a/sci-libs/cholmod/cholmod-4.0.3.ebuild b/sci-libs/cholmod/cholmod-4.0.3.ebuild new file mode 100644 index 000000000000..4ab1d6076859 --- /dev/null +++ b/sci-libs/cholmod/cholmod-4.0.3.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib toolchain-funcs + +Sparse_PV="7.0.0" +Sparse_P="SuiteSparse-${Sparse_PV}" +DESCRIPTION="Sparse Cholesky factorization and update/downdate library" +HOMEPAGE="https://people.engr.tamu.edu/davis/suitesparse.html" +SRC_URI="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${Sparse_PV}.tar.gz -> ${Sparse_P}.gh.tar.gz" + +LICENSE="LGPL-2.1+ modify? ( GPL-2+ ) matrixops? ( GPL-2+ )" +SLOT="0/4" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="+cholesky cuda doc openmp +matrixops +modify +partition +supernodal test" +RESTRICT="!test? ( test )" + +DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV} + >=sci-libs/amd-3.0.3 + >=sci-libs/colamd-3.0.3 + supernodal? ( virtual/lapack ) + partition? ( + >=sci-libs/camd-3.0.3 + >=sci-libs/ccolamd-3.0.3 + ) + cuda? ( + dev-util/nvidia-cuda-toolkit + x11-drivers/nvidia-drivers + )" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( virtual/latex-base )" + +REQUIRED_USE="supernodal? ( cholesky ) + modify? ( cholesky ) + test? ( cholesky matrixops supernodal )" + +S="${WORKDIR}/${Sparse_P}/${PN^^}" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +multilib_src_configure() { + # Not that "N" prefixed options are negative options + # so they need to be turned OFF if you want that option. + # Fortran is turned off as it is only used to compile (untested) demo programs. + local mycmakeargs=( + -DNSTATIC=ON + -DENABLE_CUDA=$(usex cuda) + -DNOPENMP=$(usex openmp OFF ON) + -DNFORTRAN=ON + -DNCHOLESKY=$(usex cholesky OFF ON) + -DNMATRIXOPS=$(usex matrixops OFF ON) + -DNMODIFY=$(usex modify OFF ON) + -DNPARTITION=$(usex partition OFF ON) + -DNSUPERNODAL=$(usex supernodal OFF ON) + -DDEMO=$(usex test) + ) + cmake_src_configure +} + +multilib_src_test() { + # Run demo files + ./cholmod_demo < "${S}"/Demo/Matrix/bcsstk01.tri || die "failed testing" + ./cholmod_l_demo < "${S}"/Demo/Matrix/bcsstk01.tri || die "failed testing" + ./cholmod_demo < "${S}"/Demo/Matrix/lp_afiro.tri || die "failed testing" + ./cholmod_l_demo < "${S}"/Demo/Matrix/lp_afiro.tri || die "failed testing" + ./cholmod_demo < "${S}"/Demo/Matrix/can___24.mtx || die "failed testing" + ./cholmod_l_demo < "${S}"/Demo/Matrix/can___24.mtx || die "failed testing" + ./cholmod_demo < "${S}"/Demo/Matrix/c.tri || die "failed testing" + ./cholmod_l_demo < "${S}"/Demo/Matrix/c.tri || die "failed testing" + ./cholmod_simple < "${S}"/Demo/Matrix/c.tri || die "failed testing" + ./cholmod_simple < "${S}"/Demo/Matrix/can___24.mtx || die "failed testing" + ./cholmod_simple < "${S}"/Demo/Matrix/bcsstk01.tri || die "failed testing" +} + +multilib_src_install() { + if use doc; then + pushd "${S}/Doc" + rm -rf *.pdf + emake + popd + DOCS="${S}/Doc/*.pdf" + fi + cmake_src_install +} diff --git a/sci-libs/cholmod/metadata.xml b/sci-libs/cholmod/metadata.xml index 9ba80d3ef6cc..4b106db7f098 100644 --- a/sci-libs/cholmod/metadata.xml +++ b/sci-libs/cholmod/metadata.xml @@ -7,6 +7,9 @@ Use nvidia cuda toolkit for speeding up computations + + Enable sparse Cholesky factorisation + Support basic sparse and dense matrix operations (add, multiply, scale, et cetera) @@ -17,7 +20,14 @@ Enable graph partitioning and graph-partition-based orderings - through sci-libs/metis or sci-libs/parmetis + through sci-libs/metis (using a bundled fork in 4.0.0+) + or sci-libs/parmetis + + + supernodal cholesky factorisation + + DrTimothyAldenDavis/SuiteSparse +