-
Notifications
You must be signed in to change notification settings - Fork 936
Add MPI_SESSION_NULL to fortran #11496
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
Conversation
|
Can one of the admins verify this patch? |
|
Hello! The Git Commit Checker CI bot found a few problems with this PR: c3bbab7: Add MPI_SESSION_NULL to fortran
Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks! |
c3bbab7 to
3c30018
Compare
|
Just added the missing "signed off by" via force push |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
looks like something's borked up with mellanox ci system: |
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Still investigating the Mellanox CI issue, looks like a CI setup misconfiguration issue after recent lab shutdown. |
|
We run Mellanox CI for main (failed) and v5.0.x (passed) - looks there may be a regression on main. Potentially this one may relate #11499 (CI passed) |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Should I rebase my commits onto main once the regression is fixed? |
|
yes please do. |
|
@boi4 The regression was fixed a few days ago; can you rebase this PR? Thanks! |
| /* This value comes from the MPI_SESSION_NULL value in mpif.h. Do not | ||
| change without consulting mpif.h! */ | ||
|
|
||
| if (MPI_SUCCESS == c_ierr) { | ||
| *session = 0; | ||
| } |
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.
Can you fix the indenting here? We use 4-space tabs in Open MPI. Thanks!
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.
Yes, I don't know how that happened. It's fixed now, thanks for noticing!
|
Hello! The Git Commit Checker CI bot found a few problems with this PR: 8f82e84: Fix invalid indentation in session_finalize_f.c
Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks! |
8f82e84 to
c296496
Compare
|
Somehow you ended up with a bunch of extra commits on this PR. Can you reduce it back down to just the one commit? |
c296496 to
a692e78
Compare
|
Sorry, I am not sure how to do this. I just moved the two commits (feature+whitespace fix) to the end of my branch, hoping that github will detect that the other commits align with the main branch. |
67c46fd to
5ea77f8
Compare
|
Ok. I believe I have fixed it now. Sorry for the confusion. |
5ea77f8 to
0841305
Compare
|
@boi4 Thank you! Sorry to be picky, but could you squash those 2 commits down into 1 commit? |
Signed-off-by: Jan Fecht <mail@fecht.cc>
0841305 to
7314f4e
Compare
Done |
Awesome; thanks so much. |
|
@boi4 Could you cherry pick this to the v5.0.x branch? |
|
Sure, I have opened a new PR: #11533 |
Hello,
I wanted to write some Fortran code that uses MPI Sessions and realized that
MPI_SESSION_NULLis not available in Fortran. As a consequence, I added support myself by adding the constant to the Fortran header generator + implementing comparison functions fortype(MPI_Session)and by makingMPI_Session_finalizereturn anMPI_SESSION_NULLhandle on return.Here are is a code pieces that wouldn't compile (because
MPI_SESSION_NULLwas not defined), but works now: