-
Notifications
You must be signed in to change notification settings - Fork 281
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
mpi: Add MPI_LOGICAL{1,2,4,8,16} and MPI_TYPECLASS_LOGICAL #6949
base: main
Are you sure you want to change the base?
Conversation
@hzhou I'm waiting for some feedback on the C implementation. Fortran is still a TODO, I'm not sure what's the best way to implement support for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will be the difference between MPI_INTEGER*
and MPI_LOGICAL*
?
I'm not sure I understand your question! What if I ask you what's the difference between
|
In the last Forum meeting, I made the point that the really important type is |
What if we simply |
That's not the way MPI datatypes are specified in the MPI standard. For example, Now, you may very well oppose the proposal to add PS: Open MPI have had support for |
I am arguing what is the necessity of adding these Fortran logical types. Fortran users can use the INTEGER equivalent to work around if needed. But I suspect there is no real need from Frotran users. I am just a bit annoyed by these ideological complexity pushed down to implementors. I would be much happier with knowing that our effort is serving some real users. Anyway, if MPI-Forum added these to the standards, we will support them, but I would wait until the official standard is published. |
As I said before, this is not the proper place to discuss the fundamentals of additions. These "ideological complexities" as you named them were added to the Fortran 2008 standard in the first place. If supporting the standard full range of Fortran types is not a compelling enough argument for you, then there is no point on keep arguing. If you tell me that
OK, fair enough... you are definitely entitled to allow any |
I would like to put a formal request to the MPICH community at large to move this PR forward and make the proposed feature available now rather than waiting for the upcoming MPI standard revision. I'll state below my rationale for this request. First, just in case, a clarification: this feature has nothing to do with the in-discussion MPI ABI effort or any of the controversies about it. Since its inception, MPI has supported fixed-size Beside the "purity" argument above about preserving symmetry in the type system, there are practical use cases that justify this addition. I think no one will object C-Fortran interoperability is very important. C99 (finally!) added a Finally, I would like to add that I believe this feature will eventually be accepted by the Forum. The type-system symmetry and and interoperability arguments discussed above are hard to beat down. No one has so far raised any concerns about this addition in the MPI Forum issue, nor in the the last Forum meeting I attended. Therefore, I ask the MPICH community at large to consider my request to add the features proposed in this PR as an |
Pull Request Description
Possible additions from the upcoming MPI 4.2 standard.
Author Checklist
Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
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.
Whitespace checker. Warnings test. Additional tests via comments.
For non-Argonne authors, check contribution agreement.
If necessary, request an explicit comment from your companies PR approval manager.