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

Add MPI_Comm_split_type MPI_COMM_TYPE_SHARED function [AMENDED] #90

Merged
merged 2 commits into from
Aug 18, 2020

Conversation

AndrewGaspar
Copy link
Contributor

I addressed some concerns I had with #89. I moved the routine to a different location in the file (roughly sorted by declaration in the standard). I also documented where in the standard MPI_Comm_split_type is described. Additionally, I returned just UserCommunicator rather than Option<UserCommunicator> - at least by my reading of the standard, if MPI_COMM_TYPE_SHARED is specified, a new communicator is always created. MPI_COMM_NULL seems to only be returned if you specified MPI_UNDEFINED. Finally, I created RSMPI_COMM_TYPE_SHARED - some implementations declare MPI_COMM_TYPE_SHARED using #define which isn't picked up by bindgen.

@zolkko - please take a look.

zolkko and others added 2 commits August 9, 2020 14:39
Replace MPI_COMM_TYPE_SHARED with RSMPI_COMM_TYPE_SHARED

Always return a communicator - documentation seems to indicate it will succeed as long as `split_type` is specified

Move implementation higher in the file to be "in-order" with specification
@AndrewGaspar
Copy link
Contributor Author

Sorry, I'm running into issues with the CI. Haven't gotten the chance to look into why it's failing yet. Seems to be an infrastructure issue.

@AndrewGaspar
Copy link
Contributor Author

It seems to be failing in master in the same way, so I'm just going to merge and fix in a separate PR.

@AndrewGaspar AndrewGaspar merged commit 055d503 into master Aug 18, 2020
@AndrewGaspar AndrewGaspar deleted the split-shared branch August 18, 2020 00:58
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.

None yet

2 participants