[petsc-dev] Fwd: MPI_UB is deprecated in MPI-2.0

Zhang, Junchao jczhang at mcs.anl.gov
Wed Mar 13 13:41:39 CDT 2019


---------- Forwarded message ---------
From: Gropp, William D <wgropp at illinois.edu<mailto:wgropp at illinois.edu>>
Date: Wed, Mar 13, 2019 at 1:38 PM
Subject: Re: [petsc-dev] MPI_UB is deprecated in MPI-2.0
To: Zhang, Junchao <jczhang at mcs.anl.gov<mailto:jczhang at mcs.anl.gov>>


Type_create_resized is the preferred method of replacing use of MPI_UB .
Bill

On Mar 13, 2019 1:34 PM, "Zhang, Junchao via petsc-dev" <petsc-dev at mcs.anl.gov<mailto:petsc-dev at mcs.anl.gov>> wrote:




On Wed, Mar 13, 2019 at 12:48 PM Isaac, Tobin G via petsc-dev <petsc-dev at mcs.anl.gov<mailto:petsc-dev at mcs.anl.gov>> wrote:

Pushed a fix that just uses MPI_Type_contiguous(MPI_BYTE, sizeof(),
...), which is not great but I'm only creating the type to work with
PetscSF, so it does the job.  Satish, do you want this as a pull
request, or can you just merge it into next
(`tisaac/feature-remove-mpi-ub`)?

If we support heterogeneous environments (e.g., big endian to little endian transfer), then we should use MPI_Type_create_resized(). MPI_BYTE is untyped. MPI needs type info to do conversion.


Thanks,
  Toby

On Tue, Mar 12, 2019 at 10:21:42PM -0600, Jed Brown wrote:
> MPI_Type_create_resized (if needed).
>
> "Balay, Satish via petsc-dev" <petsc-dev at mcs.anl.gov<mailto:petsc-dev at mcs.anl.gov>> writes:
>
> > http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2019/03/01/make_master_arch-linux-pkgs-64idx_thrash.log
> > has the following [but for some reason - its filtered out from the warning count]
> >
> >>>>>>>>
> > In file included from /sandbox/petsc/petsc.master-3/src/dm/impls/forest/p4est/dmp4est.c:13:0:
> > /sandbox/petsc/petsc.master-3/src/dm/impls/forest/p4est/pforest.c: In function ‘DMPforestGetTransferSF_Point’:
> > /sandbox/petsc/petsc.master-3/src/dm/impls/forest/p4est/pforest.c:2518:7: warning: ‘ompi_mpi_ub’ is deprecated (declared at /sandbox/petsc/petsc.master-3/arch-linux-pkgs-64idx/include/mpi.h:928): MPI_UB is deprecated in MPI-2.0 [-Wdeprecated-declarations]
> >        MPI_Datatype     blockTypes[5] = {MPI_INT32_T,MPI_INT8_T,MPI_INT16_T,MPI_INT32_T,MPI_UB};
> > <<<<<<
> >
> > Any idea how to fix this?
> >
> > Thanks,
> > Satish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20190313/8fe574b3/attachment-0001.html>


More information about the petsc-dev mailing list