On Jan 8, 2013, at 5:49 PM, Crni Gorac <cgo...@gmail.com> wrote: > Most MPI implementations (MPICH, Intel MPI) are defining MPI datatypes > (MPI_INT, MPI_FLOAT etc.) as constants; in OpenMPI, these are practically > pointers to corresponding internal structures (for example MPI_FLOAT is > defined as pointer to mpi_float structure, etc.). In trying to employ some > C++ templates to automate mapping between C types and MPI datatypes (code > provided below), I've encountered a problem with this, so I'm wondering - is > OpenMPI approach in accordance with MPI standard?
Yes. The MPI spec doesn't specify the back-end types of MPI handles. The two popular implementation choices are integers (usually C int's, such as with MPICH) and pointers (like Open MPI). -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/