[Mpi-forum] MPI_Type_create_struct vs. other datatype creation routines

Pavan Balaji balaji at mcs.anl.gov
Sat Aug 27 06:03:02 CDT 2011


No, that can't be right.

MPI_Type_hindexed was in MPI-1, and it had MPI_Aint for displacement.

MPI_Type_indexed on the other hand uses int.

MPI_Type_struct in MPI-1 also used MPI_Aint.

MPI_Type_create_indexed_block was added in MPI-2.1 (or 2.2?) and uses int.

It all seems arbitrary to me.

  -- Pavan

On 08/27/2011 05:18 AM, Jeff Squyres wrote:
> An offhand guess: TYPE_CREATE_STRUCT was created in MPI-2, whereas the rest were created in MPI-1.
>
>
> On Aug 27, 2011, at 3:54 AM, Pavan Balaji wrote:
>
>>
>> Is there a reason why MPI_Type_create_struct was given the special privilege of using MPI_Aint to store displacements, while the remaining datatype creation routines use int? This would essentially disallow creation of a datatype as an offset to MPI_BOTTOM.
>>
>> -- Pavan
>>
>> --
>> Pavan Balaji
>> http://www.mcs.anl.gov/~balaji
>> _______________________________________________
>> mpi-forum mailing list
>> mpi-forum at lists.mpi-forum.org
>> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum
>
>

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji



More information about the mpi-forum mailing list