[petsc-dev] Deprecated MPI functions

Jed Brown jed at jedbrown.org
Fri Mar 14 21:09:30 CDT 2014


PETSc still uses some deprecated MPI functions for
backward-compatibility with MPI-1, but now implementations are getting
louder about them.  I assume the status quo of not requiring MPI-2 is
still in effect [1], so we should have configure test for the new
version and define them in terms of the old names if not.


/home/jed/petsc/src/sys/utils/mpiu.c: In function ‘PetscSequentialPhaseBegin’:
/home/jed/petsc/src/sys/utils/mpiu.c:108:5: warning: ‘MPI_Keyval_create’ is deprecated (declared at /home/jed/usr/ompi/include/mpi.h:1536): MPI_Keyval_create is superseded by MPI_Comm_create_keyval in MPI-2.0 [-Wdeprecated-declarations]
     ierr = MPI_Keyval_create(MPI_NULL_COPY_FN,MPI_NULL_DELETE_FN,&Petsc_Seq_keyval,0);CHKERRQ(ierr);
     ^
/home/jed/petsc/src/sys/utils/mpiu.c:108:5: warning: ‘OMPI_C_MPI_NULL_COPY_FN’ is deprecated (declared at /home/jed/usr/ompi/include/mpi.h:844): MPI_NULL_COPY_FN is deprecated in MPI-2.0 [-Wdeprecated-declarations]
/home/jed/petsc/src/sys/utils/mpiu.c:108:5: warning: ‘OMPI_C_MPI_NULL_DELETE_FN’ is deprecated (declared at /home/jed/usr/ompi/include/mpi.h:840): MPI_NULL_DELETE_FN is deprecated in MPI-2.0 [-Wdeprecated-declarations]
/home/jed/petsc/src/sys/utils/mpiu.c:116:3: warning: ‘MPI_Attr_put’ is deprecated (declared at /home/jed/usr/ompi/include/mpi.h:1221): MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0 [-Wdeprecated-declarations]
   ierr = MPI_Attr_put(comm,Petsc_Seq_keyval,(void*)addr_local_comm);CHKERRQ(ierr);
   ^
/home/jed/petsc/src/sys/utils/mpiu.c: In function ‘PetscSequentialPhaseEnd’:
/home/jed/petsc/src/sys/utils/mpiu.c:153:3: warning: ‘MPI_Attr_get’ is deprecated (declared at /home/jed/usr/ompi/include/mpi.h:1219): MPI_Attr_get is superseded by MPI_Comm_get_attr in MPI-2.0 [-Wdeprecated-declarations]
   ierr = MPI_Attr_get(comm,Petsc_Seq_keyval,(void**)&addr_local_comm,&flag);CHKERRQ(ierr);
   ^
/home/jed/petsc/src/sys/utils/mpiu.c:161:3: warning: ‘MPI_Attr_delete’ is deprecated (declared at /home/jed/usr/ompi/include/mpi.h:1217): MPI_Attr_delete is superseded by MPI_Comm_delete_attr in MPI-2.0 [-Wdeprecated-declarations]
   ierr = MPI_Attr_delete(comm,Petsc_Seq_keyval);CHKERRQ(ierr);
   ^



[1] Something is wrong with the process when 17 years after a
standardization that involved the relevant vendors, we still cannot rely
on systems having upgraded.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140314/a1a51df0/attachment.sig>


More information about the petsc-dev mailing list