From f2411eaef72079d24b8102c6dd07a9abc338619a Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 8 Apr 2021 10:24:57 +0200 Subject: [PATCH 1/2] suitesparse: Add version 5.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From the [Web site][1]: > SuiteSparse is a suite of sparse matrix algorithms, including: > > • GraphBLAS: graph algorithms in the language of linear algebra > • Mongoose: graph partitioning > • ssget: MATLAB and Java interface to the SuiteSparse Matrix > Collection > • UMFPACK: multifrontal LU factorization. Appears as LU and x=A\b in > MATLAB. > • CHOLMOD: supernodal Cholesky. Appears as CHOL and x=A\b in MATLAB. > Now with CUDA acceleration, in collaboration with NVIDIA. > • SPQR: multifrontal QR. Appears as QR and x=A\b in MATLAB, with > CUDA acceleration. > • KLU and BTF: sparse LU factorization, well-suited for circuit > simulation. > • Ordering methods (AMD, CAMD, COLAMD, and CCOLAMD). AMD and COLAMD > appear in MATLAB. > • CSparse and CXSparse: a concise sparse Cholesky factorization > package for my SIAM book. > • spqr_rank: a MATLAB package for reliable sparse rank detection, > null set bases, pseudoinverse solutions, and basic solutions. > • Factorize: an object-oriented solver for MATLAB (a reusable > backslash). > • SSMULT and SFMULT: sparse matrix multiplication. Appears as the > built-in C=A*B operator in MATLAB. > •... and many other packages. The build/installation abuses `INSTALL` as `DESTDIR`, although it is probably meant as `PREFIX`. [1]: https://people.engr.tamu.edu/davis/suitesparse.html --- suitesparse.be0 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 suitesparse.be0 diff --git a/suitesparse.be0 b/suitesparse.be0 new file mode 100755 index 000000000..0857ef609 --- /dev/null +++ b/suitesparse.be0 @@ -0,0 +1,35 @@ +#!/usr/bin/env beesh + +# BEE_VERSION suitesparse-5.9.0-0 + +SRCURL[0]="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${PKGVERSION}.tar.gz suitesparse-v${PKGVERSION}.tar.gz" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +mee_build() { + bee_build JOBS=80 CMAKE_OPTIONS="-DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_INSTALL_LIBDIR=${LIBDIR}" +} + +mee_install() { + bee_install INSTALL=${D}${PREFIX} CMAKE_OPTIONS="-DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_INSTALL_LIBDIR=${LIBDIR}" +} + +#mee_install_post() { +# exit +#} From 8e234a17129cf58956452509a62d6c99e14fa2a3 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 8 Apr 2021 10:38:54 +0200 Subject: [PATCH 2/2] suitesparse: Disable CUDA The Makefile needs to be adapted, as it cannot be done on the command line. make CUDA=no --- suitesparse.be0 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/suitesparse.be0 b/suitesparse.be0 index 0857ef609..7e2157d40 100755 --- a/suitesparse.be0 +++ b/suitesparse.be0 @@ -18,9 +18,9 @@ SRCURL[0]="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/ # bee_patch "${@}" #} -#mee_configure() { -# bee_configure -#} +mee_configure() { + sed -i 's/CUDA = auto/CUDA = no/g' ${S}/SuiteSparse_config/SuiteSparse_config.mk +} mee_build() { bee_build JOBS=80 CMAKE_OPTIONS="-DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_INSTALL_LIBDIR=${LIBDIR}"