[petsc-users] How to pick up MPI implementation in PETSc

Matthew Knepley knepley at gmail.com
Thu Jan 9 13:28:55 CST 2025


On Thu, Jan 9, 2025 at 2:26 PM Satish Balay <balay.anl at fastmail.org> wrote:

> On Thu, 9 Jan 2025, Matthew Knepley wrote:
>
> > On Thu, Jan 9, 2025 at 1:44 PM Mark Adams <mfadams at lbl.gov> wrote:
> >
> > > I would probably add: 'grep Implementation:
> > > ${PETSC_DIR}/${PETSC_ARCH}/llib/petsc/conf/configure.log'
> > > to your run script.
> > > Or something that greps on MPI: and prints the next 4 lines.
> > >
> >
> > Hi Randy,
> >
> > PETSc gets this info from
> >
> >   ${PETSC_ARCH}/lib/petsc/conf/RDict.db
> >
> > which is a pickled Python dictionary of all the configure output. I wrote
> > an example
> > of pulling that data out, and _someone_ deleted it:
> >
> >
> >
> https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/blob/v3.0.0/bin/configVars.py?ref_type=tags__;!!G_uCfscf7eWS!YHzfvx7POQpHGF3pPcyxIv7p4vYMjCf5LGpy_6AcyuuK8zKOIFBdFBi6ZTqOdqxqQiIA-tAS7HGoZaoqRNeq$
>
>
> rdict might be broken due to changes for python-3.13
> https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7790__;!!G_uCfscf7eWS!Zzxf5zgMg2pRxgrsOeSMwCQKTlQbgzDbbYpCJibNMnMkAJfww_66UBSQn0rv7ShPrpJG42hoXuHcfXHQRFsv$ 


Hopefully only busted on arches that need XDR. Python aesthetics stick
again.

  Thanks,

    Matt


>
> Satish
>
> >
> >   Thanks,
> >
> >      Matt
> >
> >
> > > Would that work?
> > > Mark
> > >
> > > On Thu, Jan 9, 2025 at 12:23 PM Randall Mackie <rlmackie862 at gmail.com>
> > > wrote:
> > >
> > >> Dear PETSc team:
> > >>
> > >> At the bottom of the configuration file, various things are printed
> out,
> > >> like the MPI implementation:
> > >>
> > >> MPI:
> > >>
> > >>   Version:    3
> > >>
> > >>   mpiexec: /state/std2/openmpi-5.0.3-oneapi/bin/mpiexec
> > >>
> > >>   Implementation: openmpi
> > >>
> > >>   OMPI_VERSION: 5.0.3
> > >>
> > >>
> > >>
> > >> We would like to pick these up and write them to our own output files.
> > >>
> > >>
> > >> What PETSc variables have this information?
> > >>
> > >>
> > >> Especially the implementation.
> > >>
> > >>
> > >>
> > >> Thank you,
> > >>
> > >>
> > >> Randy M.
> > >>
> > >
> >
> >
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Zzxf5zgMg2pRxgrsOeSMwCQKTlQbgzDbbYpCJibNMnMkAJfww_66UBSQn0rv7ShPrpJG42hoXuHcfRM3WGfE$  <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Zzxf5zgMg2pRxgrsOeSMwCQKTlQbgzDbbYpCJibNMnMkAJfww_66UBSQn0rv7ShPrpJG42hoXuHcfRbLYV89$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250109/b55f6f67/attachment-0001.html>


More information about the petsc-users mailing list