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

Vanella, Marcos (Fed) marcos.vanella at nist.gov
Mon Apr 29 12:06:17 CDT 2024


Thank you Barry and Satish.
Trying it now.
________________________________
From: Barry Smith <bsmith at petsc.dev>
Sent: Monday, April 29, 2024 12:15 PM
To: Vanella, Marcos (Fed) <marcos.vanella at nist.gov>
Cc: balay at mcs.anl.gov <balay at mcs.anl.gov>; petsc-users <petsc-users at mcs.anl.gov>
Subject: Re: [petsc-users] Asking SuiteSparse to use Metis at PETSc config time


--with-x=0


On Apr 29, 2024, at 12:05 PM, Vanella, Marcos (Fed) via petsc-users <petsc-users at mcs.anl.gov> wrote:

This Message Is From an External Sender
This message came from outside your organization.
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 <balay at mcs.anl.gov<mailto:balay at mcs.anl.gov>>
Sent: Monday, April 29, 2024 12:00 PM
To: Vanella, Marcos (Fed) <marcos.vanella at nist.gov<mailto:marcos.vanella at nist.gov>>
Cc: petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov> <petsc-users at mcs.anl.gov<mailto:petsc-users at 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 at pj01:~/petsc/arch-linux-c-debug/lib$ nm -Ao *.so |grep METIS_PartGraphKway
libcholmod.so<https://urldefense.us/v3/__http://libcholmod.so/__;!!G_uCfscf7eWS!YIYZ1vTytYFBE5oIEuet3ePXOjBBGc_S-RV9ifF34mCwbBIPNMHUWhE0UXHsPrrNvUcv_j84iDub1KspAUwetDdPCYFkOISg$ >: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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240429/1a9c0619/attachment-0001.html>


More information about the petsc-users mailing list