[petsc-users] PETSc and AMPI

Jed Brown jed at jedbrown.org
Sun Feb 1 21:33:15 CST 2015


Barry Smith <bsmith at mcs.anl.gov> writes:
>    We could possibly "cheat" with AMPI to essentially have
>    PetscInitialize()/Finalize() run through most their code only on
>    thread 0 (assuming we have a way of determining thread 0) 

Just guard it with a lock.

>    to create the "global" data structures (this is registering of
>    objects, classids etc) and only call MPI_Init() and whatever else
>    needs to be called by all of them. May not be too ugly, but yet
>    another "special case" leading to more complexity of the code base.

What about debugging and profiling?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150201/b90f6dbc/attachment.pgp>


More information about the petsc-users mailing list