On Jan 8, 2013, at 5:49 PM, Crni Gorac <cgorac_at_[hidden]>
> 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?
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).
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/