-
Notifications
You must be signed in to change notification settings - Fork 900
HDF5 Info test fails with ompi-main #12742
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
Comments
@devreal since we talked about this issue offline, I will assign it to you. Please don't hesitate to ping me if you need any help! |
From what I understand, the test does the following:
This test is incorrect. Since MPI 4, we are not allowed to return info keys that we do not handle. Section 7.4.4 says:
We ignore the Info objects are not meant to associate user information with MPI objects. Attributes should be used instead. The rationale for that is that it gives users a chance to query whether user-provided info keys are supported by the implementation. |
@devreal ok, thank you! I think we should probably file a ticket with the HDF5 folks in that case, will ping you in a bit about that. |
We had yesterday another exchange with @devreal regarding this issue, the test passes with ompi 5.0.3 but fails with the 5.0.x branch, so probably something in the April commit that touched the Info objects (#12529) impacted this test. We need to clarify whether the behavior is indeed intended, before we file the issue with HDF5 group |
Hi all, has there been any recent discussion on whether HDF5 is doing something incorrect? I had previously been using version 5.0.3 of OpenMPI, but we received an issue report recently with OpenMPI 5.0.4, so I came looking here. I looked at section 7.4.4 of the 4.1 standard document, but couldn't find the section of text that @devreal mentioned; I was likely just looking in the wrong place though. Currently, the only place where HDF5 uses a communicator attribute is to register our library termination function, |
@jhendersonHDF the text is in Chapter 7.4. 4 in MPI4.1 as well, its in the description of MPI_Comm_get_info (bottom of page 342). I think we are dealing here with two potentially separate issues:
|
@jhendersonHDF could you help us identify the urgency of this issue? Is HDF5 with Open MPI 5.0.4 and newer actually broken from the functional perspective, are some aspects broken, or is mostly just the test impacted? |
@edgargabriel I don't think I'd necessarily call this issue urgent. The only functionality in HDF5 that appears to be broken is the ability to retrieve user-supplied hints from an Info object stored on an HDF5 File Access Property List after calling It seems that HDF5 has long assumed that the Info object could be used for arbitrary data that would be propagated between communicators. If that's changed with the MPI 4 standard, it seems like something we should fix on our end. To keep the same behavior, the library would likely just store a backup of all the hints and replace as necessary. Though, it would definitely be nice to get clarification on whether we're compliant with the standard or not before making those changes since there are a few different places in the library to be considered. The text in the standard referenced here is under the |
@jhendersonHDF thank you: you raised a very valid point whether the MPI spec is consistent in the Info object handling for Communicators and Files. I double checked, MPI 4.1 has exactly the same language for Files as well, its in section 14.2.8 on page 648. Beyond this, we should probably confirm with the MPICH/ROMIO folks that there reading of the standard is the same as ours. This should clarify whether HDF5 would need to make an adjustment, or us. |
MPI 4.1 Chapter 10 Page 473 Line 21.5 says
Whoever changed Chapter 7 to contradict this made a grievous error. |
Nobody changed Chapter 7 recently to make such a change and as indicated by @edgargabriel files have the same behavior, which indicates that the MPI standard has been consistent with the use of To summarize, MPI_Info is a generic storage but communicator and files are not, and OMPI exhibits the behavior specified by the MPI standard. |
We're planning to discuss this issue at the next I/O WG meeting, on Oct. 3, at 2:30pm CT. Probably will be @edgargabriel , @devreal , Neil Fortner, and myself, at least. Would anyone else like specifics for the WG meeting so that they can attend? |
I took a look at the code and it looks like the HDF5 test is only using MPI_Info_dup(). MPI_Comm_get_info() does not occur in the HDF5 source, and there are no files in that test. After calling MPI_Info_dup(), the test expects to get arbitrary user-set info keys back. MPI 4.1 Chapter 10 Page 477 Line 45 says:
Which to me, together with the line @jeffhammond posted, suggests it should copy all keys, even ones it doesn't recognize. Interestingly, HDF5 notes the behavior @bosilca mentioned with respect to MPI_File_get_info() in H5FD_mpio_open() (H5FDmpio.c:884):
|
@qkoziol please keep us informed on the forum discussion, to have a basis on moving this forward one way or another. |
I've confirmed the following standalone test program fails on openmpi 5.0.5, on the line "Number of keys on double duplicated MPI info object does not match that on original". It requires the info to be duplicated twice to fail.
|
By "original test case" do you mean the HDF5 test failure in this issue description? HDF5 never retrieves the info from a communicator, so I'm not sure how that is relevant. Also, @edgargabriel has confirmed #12847 fixes the HDF5 test failure. |
Background information
What version of Open MPI are you using? (e.g., v4.1.6, v5.0.1, git branch name and hash, etc.)
main developer branch
Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)
regular ./configure flags
Please describe the system on which you are running
Details of the problem
Open MPI main is failing an hdf5 test that is testing Info object handling. The test has been verified to pass on 5.0.3, so its really main that is effected.
The error is triggered by an unexpected value returned by
MPI_Info_get_nkeys
The test has been confirmed to fail with hdf5-1.14.2 and hdf5-1.14.4.3.
To reproduce the error:
The text was updated successfully, but these errors were encountered: