Re: [mpi-21] Ballot 4 proposal: fix attribute example 4.13
We'll put it on Ballot 4. It finishes two discussion streams: ----------------------------------------- Interlanguage use of Attributes http://www.cs.uiuc.edu/homes/wgropp/projects/parallel/MPI/mpi-errata/discuss... Subject: Re: clarification on inter-language interoperability of attributes See also Error in Example 4.13 in MPI-2 Error in Example 4.13 in MPI-2 (Use of Attributes in C and Fortran) http://www.cs.uiuc.edu/homes/wgropp/projects/parallel/MPI/mpi-errata/discuss... Subject: MPI-2 attributes question See also Interlanguage use of Attributes. ----------------------------------------- I checked again all the cross references in MPI-1 and MPI-2. It seems that this was the only inconsistency on attribute caching Fortran and C interfaces. Best regards Rolf On Fri, 18 Jan 2008 16:10:49 -0500 Jeff Squyres <jsquyres_at_[hidden]> wrote:
Per http://www.cs.uiuc.edu/homes/wgropp/projects/parallel/MPI/mpi-errata/ , the errata item entitled "Error in Example 4.13 in MPI-2 (Use of Attributes in C and Fortran)". I believe that this errata item supersedes the errata item "Interlanguage use of Attributes".
See the mail discussing:
http://www.cs.uiuc.edu/homes/wgropp/projects/parallel/MPI/mpi-errata/discuss...
Proposal:
Change MPI-2:4.12, p58:36 from: IF (val.NE.5) THEN CALL ERROR to IF (val.NE.address_of_i) THEN CALL ERROR
Rationale:
MPI-2:4.12 p58:12-13 and 16-18 clearly state that if an attribute is set by C, retrieving it in Fortran will obtain the address of the attribute.
See the mails for more discussion, including an exhaustive list of what happens for each of the 9 possibilities of setting and getting attribute values between the different languages.
-- Jeff Squyres Cisco Systems
Dr. Rolf Rabenseifner . . . . . . . . . .. email rabenseifner_at_[hidden] 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: Allmandring 30)
participants (1)
-
unknown@example.com