Skip to content

MPI_File_set_view datatype check #4682

@ggouaillardet

Description

@ggouaillardet

Following the issue initially reported on Stack Overflow i opened this issue on MPICH.

It turns out the MPI standard 3.1 chapter 13.3 requires

An etype (elementary datatype) is the unit of data access and positioning. It can be any MPI predefined or derived datatype. Derived etypes can be constructed by using any of the MPI datatype constructor routines, provided all resulting typemap displacements are non-negative and monotonically nondecreasing.

And we do not check such a thing in Open MPI.

What would be the best way to achieve that ?

  • one option would be to write an adhoc check in MPI_File_set_view()
  • an other option would be to add yet an other flag (OPAL_DATATYPE_FLAG_MONOTONIC ?) and update it when modifying datatypes.

@bosilca i can take a crack at it, but i would like you to give me a direction first.

FWIW

  • ROM-IO hangs in and endless loop or crash in some cases.
  • ompio seems fine with that (well, from v3.1.x) , but portable code should not rely on this (current) behavior.

@edgargabriel FYI

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions