in this case, stat is an integer (scalar) but an array of integer is
expected.
I guess a fortran 90 can detect that.
I also guess it can detect ptr was used unitialized in rank 0.

my 0.02 US$

Gilles


On Monday, January 25, 2016, Dave Love <d.l...@liverpool.ac.uk> wrote:

> Jeff Hammond <jeff.scie...@gmail.com <javascript:;>> writes:
>
> > You will find the MPI Fortran 2008 bindings to be significantly better
> > w.r.t. MPI types.  See e.g. MPI 3.1 section 17.2.5 where it describes
> > TYPE(MPI_Status), which means that the status object is a first-class
> type
> > in the Fortran 2008 interface, rather than being an error prone INTEGER
> > array.
>
> You might expect the f90 module to reveal the error anyway.
> Unfortunately which routines it covers depends on the compiler and OMPI
> versions in a way I don't understand -- can someone explain?  For
> instance, it won't work with the RHEL6 system compiler (GCC 4.4), but
> OMPI 1.8 using GCC 4.9 will report the error with "use mpi".
>
> > I haven't used Fortran 2008 bindings in a nontrivial way yet, but it is
> my
> > understanding that Open-MPI has a good implementation of them and has
> for a
> > relatively long time.
>
> Unfortunately they won't be built if you use the system compiler on
> RHEL6 (which I'd guess is still be the most common HPC platform).
> Aren't they meant to address different problems with the subroutine
> signatures anyway?  But strong typing is definitely good.
> _______________________________________________
> users mailing list
> us...@open-mpi.org <javascript:;>
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post:
> http://www.open-mpi.org/community/lists/users/2016/01/28365.php
>

Reply via email to