[petsc-dev] Single configure script for SuiteSparse package

Satish Balay balay at mcs.anl.gov
Wed Feb 12 12:17:12 CST 2014

On Wed, 12 Feb 2014, Abhyankar, Shrirang G. wrote:

> Barry,
>    Satish and I have attempted to create a single configure script for SuiteSparse installation. It is currently in the branch shri/update-SuiteSparse https://bitbucket.org/petsc/petsc/branch/shri%2Fupdate-SuiteSparse. This change downloads the entire SuiteSparse package and installs all the sub-packages that PETSc currently supports (UMFPACK, CHOLMOD, and KLU). We can of course have selective installation of sub-packages if need be, currently it does not. I know you prefer a 'separate' configure script for each sub-package, but we think a single configure is a better approach. This change also updates PETSc to use the latest SuiteSparse. I've tested it with both debugging and optimized modes (with complex and 64-bit ints) and there was no change needed for UMFPACK or CHOLMOD solver interfaces. Let us know what you think? petsc-devs?

Note: Apart from--download-suitsparse=1 - --with-suitsparse=1 or
--with-suitsparse works on ubuntu/linux with preisntalled suitsparse
[and presumably will work with other suitsparse installs]

And it avoids all the issues with spliting and maintaining our own
taballs for UMFPACK, CHOLMOD, and KLU [and managing duplicate copies
of dependencies like AMD, COLAMD libsuitsparse etc.] - and will avoid
corner-cases like --download-umfpack --with-cholmod-dir= etc..

One caveat: we build only part of suitsparse [required by petsc] - not
the whole thing.

PETSC_HAVE_SUITSPARSE?  [I don't think its necessary - but checking..]

And then configure should print an error message if --with-umpfack
option is specified [via check_for_option_changed() in


More information about the petsc-dev mailing list