Skip to content

2.0.0rc2: Regression in MPI_File_get_info() #1630

@dalcinl

Description

@dalcinl

After creating a file passing null info handle, quering for the info returns a null info handle. Previous releases returned a non null info handle. The wording in the MPI-3 standard seems to imply that the call should return a new (I interpret that as non-null) info handle.

from mpi4py import MPI
comm = MPI.COMM_SELF
mode = MPI.MODE_RDWR | MPI.MODE_CREATE
info = MPI.INFO_NULL
fh = MPI.File.Open(comm, "/tmp/datafile", mode, info)
assert fh.Get_info() != MPI.INFO_NULL
$ python test-ompi-1.py 
Traceback (most recent call last):
  File "test-ompi-1.py", line 6, in <module>
    assert fh.Get_info() != MPI.INFO_NULL
AssertionError

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions