[MPIWG Fortran] What is BIND(C)?

Bill Long longb at cray.com
Wed Feb 5 12:07:43 CST 2014


On Feb 5, 2014, at 11:46 AM, Rolf Rabenseifner <rabenseifner at hlrs.de> wrote:

> Hello,
> 
> The BIND(C) was removed in the latest errata,

Correct.   The place for BIND(C) is in the interface for the underlying C routine.  At that level, the arguments are interoperable.

Cheers,
Bill



> see
> http://www.mpi-forum.org/docs/docs.html
> and
> http://www.mpi-forum.org/docs/mpi-3.0/errata-30.pdf
> page 1 lines 21-27
> 
> Best regards
> Rolf Rabenseifner
> 
> ----- Original Message -----
>> From: "Junchao Zhang" <jczhang at mcs.anl.gov>
>> To: mpiwg-fortran at lists.mpi-forum.org
>> Sent: Wednesday, February 5, 2014 6:42:28 PM
>> Subject: [MPIWG Fortran] What is BIND(C)?
>> 
>> 
>> 
>> Hello,
>>   I have a naive question. MPI3 has Fortran binding in forms like
>> this:
>> 
>> 
>>       MPI_Send(buf, count, datatype, dest, tag, comm, ierror) BIND(C)
>>          TYPE(*), DIMENSION(..), INTENT(IN) :: buf
>>           INTEGER, INTENT(IN) :: count, dest, tag
>>           ...
>> 
>> 
>>    So how to interpret BIND(C) here?  Is it to say this interface is
>> interoperable with C? But I find the interface arguments are not
>> interoperable, e.g., INTEGER, instead of C_INT.
>>    Thank you.
>> 
>> --Junchao Zhang
>> _______________________________________________
>> mpiwg-fortran mailing list
>> mpiwg-fortran at lists.mpi-forum.org
>> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-fortran
> 
> -- 
> Dr. Rolf Rabenseifner . . . . . . . . . .. email rabenseifner at hlrs.de
> High Performance Computing Center (HLRS) . phone ++49(0)711/685-65530
> University of Stuttgart . . . . . . . . .. fax ++49(0)711 / 685-65832
> Head of Dpmt Parallel Computing . . . www.hlrs.de/people/rabenseifner
> Nobelstr. 19, D-70550 Stuttgart, Germany . . . . (Office: Room 1.307)
> _______________________________________________
> mpiwg-fortran mailing list
> mpiwg-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-fortran

Bill Long                                                                       longb at cray.com
Fortran Technical Suport  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101





More information about the mpiwg-fortran mailing list