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

Satish Balay balay at mcs.anl.gov
Mon Apr 29 11:11:03 CDT 2024


BTW: you can avoid LDFLAGS="-ld_classic"  [and also --with-shared-libraries=0?] with --download-openmpi=https://urldefense.us/v3/__https://web.cels.anl.gov/projects/petsc/download/externalpackages/openmpi-5.0.3-xcode15.tar.gz__;!!G_uCfscf7eWS!aKSkj7j0MQdzrUxQIWrganVR7b-fp6-0WA2AHagxB5l4dfWhCIXRkGDh_lPJgJ0av1HSQ_YMreLtmLeeBQ5VB9M$ 

Satish

On Mon, 29 Apr 2024, Satish Balay via petsc-users wrote:

> 
> # Other CMakeLists.txt files inside SuiteSparse are from dependent packages
> # (LAGraph/deps/json_h, GraphBLAS/cpu_features, and CHOLMOD/SuiteSparse_metis
> # which is a slightly revised copy of METIS 5.0.1) but none of those
> # CMakeLists.txt files are used to build any package in SuiteSparse.
> 
> 
> So suitesparse includes a copy of metis sources - i.e does not use external metis library?
> 
> >>
> balay at pj01:~/petsc/arch-linux-c-debug/lib$ nm -Ao *.so |grep METIS_PartGraphKway
> libcholmod.so:000000000026e500 T SuiteSparse_metis_METIS_PartGraphKway
> <<<
> 
> And metis routines are already in -lcholmod [with some namespace fixes]
> 
> Satish
> 
> On Mon, 29 Apr 2024, Vanella, Marcos (Fed) via petsc-users wrote:
> 
> > 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
> > 
> 
> 



More information about the petsc-users mailing list