[mpich-discuss] basic datatype for MPI_Offset

Rob Latham robl at mcs.anl.gov
Mon Apr 27 08:22:08 CDT 2009


On Mon, Apr 27, 2009 at 08:08:13AM -0500, Dave Goodell wrote:
> If you are running in some sort of heterogeneous environment then this  
> code might not work correctly if different processes might select  
> different types as aliases for MPI_Offset.

Even more options for you!

You can make a type consisting of sizeof(MPI_offset) instances of
MPI_BYTE:

MPI_Type_contiguous(sizeof(MPI_Offset), MPI_BYTE, &offsettype);

And if you are hacking ROMIO, there are preprocessor macros so that
you can use 'ADIO_OFFSET' as the MPI type and the preprocessor will
replace it with a big-enough type.

==rob

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA


More information about the mpich-discuss mailing list