[petsc-dev] Removed functions in MPI 3

Matthew Knepley knepley at gmail.com
Tue Jan 22 16:04:31 CST 2013


On Tue, Jan 22, 2013 at 3:51 PM, Karl Rupp <rupp at mcs.anl.gov> wrote:

> Hi,
>
>      MPI 3.0 *removes* a set of functions from MPI 1.x, of which the
>>     following are in use in PETSc:
>>
>>       * MPI_Type_struct, used in
>>         src/ts/characteristic/impls/__**da/slda.c
>>         src/dm/impls/mesh/meshpcice.c
>>
>>       * MPI_Errhandler_create/MPI___**Errhandler_set, used in
>>
>>         src/sys/objects/pinit.c
>>         src/sys/objects/init.c
>>
>>     In both cases function were renamed in MPI-2.0:
>>        MPI_Type_struct       -> MPI_Type_create_struct
>>        MPI_Errhandler_create -> MPI_Comm_create_errhandler
>>        MPI_Errhandler_set    -> MPI_Comm_set_errhandler
>>
>>     It should be sufficient to update
>>     BuildSystem/config/packages/__**MPI.py and add the respective checks
>>
>>     in configureMPI2(). Any objections on the following defines:
>>        HAVE_MPI_TYPE_CREATE_STRUCT
>>        HAVE_MPI_COMM_CREATE___**ERRHANDLER
>>
>>        HAVE_MPI_COMM_SET_ERRHANDLER
>>     in the case of success?
>>
>>
>> Yes, this is the right way.
>>
>>    Matt
>>
>
> Since there was a lack of consensus on alternatives, I applied Matt's
> Right Way here:
> https://bitbucket.org/petsc/**petsc-dev/commits/**
> fabf60c7d012db5a109255579665b5**c2<https://bitbucket.org/petsc/petsc-dev/commits/fabf60c7d012db5a109255579665b5c2>
> https://bitbucket.org/petsc/**buildsystem/commits/**
> 355293e9e4e0588644168f629930b5**66<https://bitbucket.org/petsc/buildsystem/commits/355293e9e4e0588644168f629930b566>
>
> This is mostly done to ensure that we don't forget about the initial goal
> of fixing the issue. Cleaner/more unified solutions to the problem are
> still welcome...
>

This is almost there. I will have BuildSystem write the define directly
like Barry suggested.

  Thanks,

     Matt


> Best regards,
> Karli
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130122/5cbea78d/attachment.html>


More information about the petsc-dev mailing list