Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io/romio314: mark datatypes of size 0 as contiguous #4895

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ompi/mca/io/romio314/src/io_romio314_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ void ADIOI_Datatype_iscontig(MPI_Datatype datatype, int *flag)
* In addition, if the data is contiguous but true_lb differes
* from zero, ROMIO will ignore the displacement. Thus, lie!
*/

size_t size;
opal_datatype_type_size (&datatype->super, &size);
if ( 0 == size ) {
*flag = 1;
return;
}

*flag = ompi_datatype_is_contiguous_memory_layout(datatype, 2);
if (*flag) {
MPI_Aint true_extent, true_lb;
Expand Down