[mpich-discuss] Size of a type created with MPI_Type_create_darray

Rob Latham robl at mcs.anl.gov
Fri Nov 11 11:14:53 CST 2016



On 11/11/2016 07:36 AM, Dorier, Matthieu wrote:
> Hi,
>
> I have a trace of an MPI program in which parameters of every MPI calls
> have been recorded. Some communication functions are using a
> user-defined type created with MPI_Type_create_darray.
>
> I would like to know what is the size of this type as a function of the
> parameters passed to MPI_Type_create_darray (again, I'm working on a
> trace, so I can't just call MPI_Type_size). We can assume, for
> simplicity, that the oldtype parameter is MPI_BYTE. I'm having troubles
> understanding, from the standard and from online documentation, how this
> function works and how I can compute this size. Could you help?

the romio flatten.c and ad_darray.c code might be helpful?

I'd be tempted to make your trace program a singleton MPI program just 
so you *can* call MPI_Type_size.

Or, make two passes over your trace and generate a darray lookup table?

==rob

>
> Thanks,
>
> Matthieu
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list