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

romio: implement binding generation for ROMIO #7228

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

hzhou
Copy link
Contributor

@hzhou hzhou commented Dec 1, 2024

Pull Request Description

Integrate ROMIO into MPICH's binding generation framework. This will unify and simplify the IO binding tasks such as large count support, fortran support, man page support.

We'll retain the current stand-alone nature of ROMIO as much as we can in this PR. There shouldn't be any noticeable difference for users who build ROMIO separate from MPICH.

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

Add io_api.txt and generate io bindings
We provide them in errhan_api.txt.
IO apis need additional adaptations.

Also enhance the script by adding scan_custom_error_check so that if we
use custom error checking, esp. with CHECKENUM or CHECKMASK, we
automatically skip the default validation check.
Generate io bindings including prototypes in mpi_proto.h and
mpir_impl.h.

src/binding/c/io.c caintains all the IO binding functions that calls the
corresponding _impl functions. But it is not included in the Makefile
yet.
Define the complete MPI-IO interface in mpi.h.

In all_romio_symbols.c, we can use MPI_Request instead of MPIO_Reuqest
since MPIO_Request is not longer defined in mpi.h (since it no longer
includes mpio.h).
These looks like vendor-specific code. We can easily generate them if
needed. Remove them for now to simplify refactor.
All romio error check macros takes a myname parameter (which can be
replaced by __func__). Make MPIO_CHECK_INFO_ALL consistent.
Refactor to split interface and implementation. This prepares for
binding generations.

This commit refactors MPI_File_open and MPI_File_close.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant