[petsc-users] Asking SuiteSparse to use Metis at PETSc config time

Vanella, Marcos (Fed) marcos.vanella at nist.gov
Mon Apr 29 10:24:10 CDT 2024


Hi all, I'm wondering.. Is it possible to get SuiteSparse to use Metis at configure time with PETSc? Using Metis for reordering at symbolic factorization phase gives lower filling for factorization matrices than AMD in some cases (faster solution phase).
I tried this with gcc compilers and openmpi:

$./configure LDFLAGS="-ld_classic" COPTFLAGS="-O2 -g" CXXOPTFLAGS="-O2 -g" FOPTFLAGS="-O2 -g" --with-debugging=0 --with-shared-libraries=0 --download-metis --download-suitesparse --download-hypre --download-fblaslapack --download-make --force

and get for SuiteSparse:

metis:
  Version:    5.1.0
  Includes:   -I/Users/mnv/Documents/Software/petsc/arch-darwin-opt-gcc/include
  Libraries:  -Wl,-rpath,/Users/mnv/Documents/Software/petsc/arch-darwin-opt-gcc/lib -L/Users/mnv/Documents/Software/petsc/arch-darwin-opt-gcc/lib -lmetis
SuiteSparse:
  Version:    7.7.0
  Includes:   -I/Users/mnv/Documents/Software/petsc/arch-darwin-opt-gcc/include/suitesparse -I/Users/mnv/Documents/Software/petsc/arch-darwin-opt-gcc/include
  Libraries:  -Wl,-rpath,/Users/mnv/Documents/Software/petsc/arch-darwin-opt-gcc/lib -L/Users/mnv/Documents/Software/petsc/arch-darwin-opt-gcc/lib -lspqr -lumfpack -lklu -lcholmod -lbtf -lccolamd -lcolamd -lcamd -lamd -lsuitesparseconfig

for which I see Metis will be compiled but I don't have -lmetis linking in the SuiteSparse Libraries.
Thank you for your time!
Marcos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240429/34cc2a30/attachment.html>


More information about the petsc-users mailing list