Re: [OMPI devel] Datasize confusion in MPI_Write can lead to data los!

2008-02-08 Thread George Bosilca
The patch I send few minutes ago will only remove the problem for Open MPI. However, their generic test for contiguous data types is still broken. Only checking for COMBINER_NAMED is clearly not enough. A second test checking that the size and the extent of the data types are equal will mak

Re: [OMPI devel] Datasize confusion in MPI_Write can lead to data los!

2008-02-08 Thread George Bosilca
Here is sketch of a ROMIO patch for Open MPI. I just wrote it, I didn't had time to test it. If you can test it please let me know if this solve the problem. Thanks, george. Index: iscontig.c === --- iscontig.c (revision

Re: [OMPI devel] Datasize confusion in MPI_Write can lead to data los!

2008-02-08 Thread Rainer Keller
Hi George, Good, if You come to the same conclusion with regard to romio using MPI_Type_size internally in RomIO... So taking iscontig.c ,-] /* This function needs more work. It should check for contiguity in other cases as well.*/ and mail to the romio list or have a specialized vers

Re: [OMPI devel] Datasize confusion in MPI_Write can lead to data los!

2008-02-08 Thread George Bosilca
MPI_Type_size is supposed to return only the size of useful data, which apparently it does (MPI_SHORT_INT is 6 bytes). What I think it happens is that the MPI_SHORT_INT type is a predefined one, but it's a really strange predefined type. It's one of the few that are not contiguous. The prob