Hi Satish,
Ok thank you for clarifying. I don't need to include Metis in the config phase 
then (not using anywhere else).
Is there a way I can configure PETSc to not require X11 (Xgraph functions, 
etc.)?
Thank you,
Marcos
________________________________
From: Satish Balay <ba...@mcs.anl.gov>
Sent: Monday, April 29, 2024 12:00 PM
To: Vanella, Marcos (Fed) <marcos.vane...@nist.gov>
Cc: petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov>
Subject: Re: [petsc-users] Asking SuiteSparse to use Metis at PETSc config time


# 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@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
>

Reply via email to