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

Fixes for tags that affected PointQuery on some systems. #1327

Merged
merged 9 commits into from
Oct 22, 2024

Conversation

BradWhitlock
Copy link
Member

On rzadams, the MPI does not like large tag values. The PointQuery algorithm (and others) were using large tag values. The mechanism put in place to query a communicator's upper tag limit was not quite right before. This PR updates some of that logic and lowers some tag values so they're more likely to work with that MPI.

Also, in relay::mpi::communicate_using_schema it was possible for a user-registered error function to prevent exceptions from being thrown when needed. The class now temporarily suspends user-registered warning/error functions so exceptions will get thrown if MPI errors or other errors occur. This should make errors easier to diagnose.

{
return (tag < MPI_TAG_UB) ? ((tag >= 0) ? tag : MPI_TAG_UB) : MPI_TAG_UB;
// Get the tag upper bound for the communicator.
// MPI_Comm_get_attr with MPI_TAG_UB is not a very reliable function.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's always fun :( Thanks for identifying this issue.

Copy link
Member

@cyrush cyrush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for these improvements!

@BradWhitlock BradWhitlock merged commit 0d8db6d into develop Oct 22, 2024
26 checks passed
@BradWhitlock BradWhitlock deleted the bugfix/whitlock/point_query_tags branch October 22, 2024 20:04
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.

3 participants