[MPI3 Fortran] MPI Fortran bindings

Bill Long longb at cray.com
Fri Jun 5 14:32:59 CDT 2009



Jim Xia wrote:
> 
>  > INTENT doesn't help with non-contiguous buffers.  
> 
> There is a subtle difference an intent can make: INTENT(IN) will 
> suppress copy-out if copying has to be made by the compiler.

Yes, this is a good point in favor of intent.  Similarly, an INTENT(OUT) 
dummy would suppress a copy-in before the call.

Cheers,
Bill


> 
>  >                                                      In this context,
>  > it's mostly a documentation thing, though a compiler can detect some
>  > problems if there's an intent conflict (for example, passing an
>  > INTENT(IN) argument to an INTENT(OUT) argument.
> 
> This is a positive side of specifying INTENT.  The flip side, however, 
> is that to get the right intent might be tricker than it looks.
> 
> Cheers,
> 
> Jim Xia
> 
> XL Fortran Compiler Test
> IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
> Phone (905) 413-3444  Tie-line 313-3444
> email: jimxia at ca.ibm.com
> D2/YF7/8200 /MKM
> 
> http://www.ibm.com/software/awdtools/fortran/xlfortran
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mpi3-fortran mailing list
> mpi3-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-fortran

-- 
Bill Long                                   longb at cray.com
Fortran Technical Support    &              voice: 651-605-9024
Bioinformatics Software Development         fax:   651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120





More information about the mpiwg-fortran mailing list