[MPI3 Fortran] What if Fortran is the primary interface?
alexander.supalov at intel.com
Mon Mar 17 16:39:25 CDT 2008
Thanks. You probably meant
TYPEALIAS :: MPI_COMM=>INTEGER(KIND=INT32) ! Handles are integers
Because this is what they are in those implementations. By the way,
MPI_FILE there is a pointer. I'm talking about MPICH2 and friends here
(including MS MPI and Intel MPI).
From: mpi3-fortran-bounces at lists.mpi-forum.org
[mailto:mpi3-fortran-bounces at lists.mpi-forum.org] On Behalf Of
Sent: Monday, March 17, 2008 10:24 PM
To: MPI-3 Fortran working group
Subject: Re: [MPI3 Fortran] What if Fortran is the primary interface?
On Monday 17 March 2008 13:39, Supalov, Alexander wrote:
> Careful: quite a few implementations use INTEGER to represent a handle
> as a bit mask, rather than a pointer.
The best way to handle this kind of argument, IMO, is a type alias
In C that is handled by the preprocessor and so it is essentially a
but in Fortran it would have to be built-in. It was part of Fortran 2003
until the very last minute, when it was pulled out due to alleged
problems" (as you can tell I did not buy that---this was from language
purists that simply did not want a typedef-like facility in the
The MPI Forum could request this be added in Fortran 2008 for the
interop. I could help you write the technical specification:
TYPEALIAS :: MPI_COMM=>TYPE(C_PTR) ! Handles are pointers, or
TYPEALIAS :: MPI_COMM=>INTEGER(KIND=INT64) ! Handles are integers
Aleksandar Donev, Ph.D.
Lawrence Postdoctoral Fellow @ Lawrence Livermore National Laboratory
High Performance Computational Materials Science and Chemistry
E-mail: donev1 at llnl.gov
Phone: (925) 424-6816 Fax: (925) 423-0785
Address: P.O.Box 808, L-367, Livermore, CA 94551-9900
mpi3-fortran mailing list
mpi3-fortran at lists.mpi-forum.org
Dornacher Strasse 1
85622 Feldkirchen/Muenchen Germany
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 Ust.-IdNr.
VAT Registration No.: DE129385895
Citibank Frankfurt (BLZ 502 109 00) 600119052
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
More information about the mpiwg-fortran