<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr"><br clear="all">
<div>
<div dir="ltr" class="m_8452828193454627174gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr"><br>
</div>
</div>
</div>
<br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Mar 13, 2019 at 12:48 PM Isaac, Tobin G via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Pushed a fix that just uses MPI_Type_contiguous(MPI_BYTE, sizeof(),<br>
...), which is not great but I'm only creating the type to work with<br>
PetscSF, so it does the job.  Satish, do you want this as a pull<br>
request, or can you just merge it into next<br>
(`tisaac/feature-remove-mpi-ub`)?<br>
</blockquote>
<div><br>
</div>
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.
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks,<br>
  Toby<br>
<br>
On Tue, Mar 12, 2019 at 10:21:42PM -0600, Jed Brown wrote:<br>
> MPI_Type_create_resized (if needed).<br>
> <br>
> "Balay, Satish via petsc-dev" <<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> writes:<br>
> <br>
> > <a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2019/03/01/make_master_arch-linux-pkgs-64idx_thrash.log" rel="noreferrer" target="_blank">
http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2019/03/01/make_master_arch-linux-pkgs-64idx_thrash.log</a><br>
> > has the following [but for some reason - its filtered out from the warning count]<br>
> ><br>
> >>>>>>>><br>
> > In file included from /sandbox/petsc/petsc.master-3/src/dm/impls/forest/p4est/dmp4est.c:13:0:<br>
> > /sandbox/petsc/petsc.master-3/src/dm/impls/forest/p4est/pforest.c: In function â€˜DMPforestGetTransferSF_Point’:<br>
> > /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]<br>
> >        MPI_Datatype     blockTypes[5] = {MPI_INT32_T,MPI_INT8_T,MPI_INT16_T,MPI_INT32_T,MPI_UB};<br>
> > <<<<<<<br>
> ><br>
> > Any idea how to fix this?<br>
> ><br>
> > Thanks,<br>
> > Satish<br>
</blockquote>
</div>
</div>
</body>
</html>