From: Rolf Rabenseifner Subject: Re: first batch... / 18. C++/Fortran datatypes To: lusk@XXXXXXXXXXX Date: Mon, 7 May 2001 14:26:34 +0200 (CEST) Cc: mpi-21@XXXXXXXXXXXXX In-Reply-To: <200105061719.MAA30522@XXXXXXXXXXX> X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-mpi-21@XXXXXXXXXXXXX Precedence: bulk I have looked at all 20 proposals: All, except No.18, looked okay for me. According to our method used in the language interoperability section, I propose the following text (instead of the proposal in 18.): Page 276, at the end of line 2, add Table 10.4 lists the C/Fortran MPI datatype names that correspond to C++ MPI datatypes without corresponding C datatype (see also Table 10.1). Page 277, after line 37, add C++ MPI datatype | corresponding C/Fortran MPI datatype -------------------------+------------------------------------- MPI::BOOL | MPI_BOOL MPI::COMPLEX | MPI_CC_COMPLEX MPI::DOUBLE_COMPLEX | MPI_CC_DOUBLE_COMPLEX MPI::LONG_DOUBLE_COMPLEX | MPI_CC_LONG_DOUBLE_COMPLEX Table 10.4: C++ MPI datatypes (without corresponding C datatype) and there corresponding C/Fortran MPI datatype name. Page 305, after line 20 add: C++ MPI datatypes without corresponding C datatype ------------------------------------------------------ MPI_BOOL MPI::BOOL MPI_CC_COMPLEX MPI::COMPLEX MPI_CC_DOUBLE_COMPLEX MPI::DOUBLE_COMPLEX MPI_CC_LONG_DOUBLE_COMPLEX MPI::LONG_DOUBLE_COMPLEX Independent from this discussion, obviously, we have to add: Page 251, after line 10, add MPI::BOOL 1 MPI::COMPLEX 2*4 MPI::DOUBLE_COMPLEX 2*8 MPI::LONG_DOUBLE_COMPLEX 2*16 Best regards Rolf > 18. ______________________________________________________________________ > > o C++ and Fortran Complex > > Mail discussing > > This needs more discussion. The problem is that some of the C++ > datatypes have no easily defined counterparts in C or Fortran. The > minimum fix is really a clarification that says that there is no > interlanguage support for the C++ complex types. > > Proposed text: > > Page 276, after line 4, add > > Advice to users. > Most but not all datatypes in each language have corresponding > datatypes in other languages. For example, there is no C or > Fortran counterpart to the MPI::BOOL or the the MPI::COMPLEX, > MPI::DOUBLE_COMPLEX, or MPI:LONG_DOUBLE_COMPLEX. > End of advice to users. > > Extending the C++ datatypes to C and Fortran needs to include MPI::BOOL > as well as the complex types, and should define what the equivalent > types are in C and Fortran. The real issue here is the MPI:F_COMPLEX > and completing the list of such routines. Dr. Rolf Rabenseifner High Performance Computing Parallel Computing Center Stuttgart (HLRS) Rechenzentrum Universitaet Stuttgart (RUS) Phone: ++49 711 6855530 Allmandring 30 FAX: ++49 711 6787626 D-70550 Stuttgart rabenseifner@XXXXXXXXXXXXXXXXXXXX Germany http://www.hlrs.de/people/rabenseifner