Skip to content

MPI_T: add code to check obj_handle arg #13348

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

Merged
merged 1 commit into from
Jul 30, 2025
Merged

Conversation

hppritcha
Copy link
Member

Three MPI_T methods - for pvar, cvar, events, can bind one of these objects to an arbitrary MPI object.

There was verbiage added to the MPI 4.1 standard which states its erroneous to bind one of these 'T' objects to an invalid MPI object. This PR adds code to make an effort at checking the validity of the arbitrary MPI object argument.

We don't bother with events since only a stub implementation is currently present.

Related to issue #12185.

@hppritcha hppritcha requested a review from devreal July 29, 2025 18:14
@hppritcha
Copy link
Member Author

@devreal could you recheck this?

devreal
devreal previously approved these changes Jul 29, 2025
Copy link
Contributor

@devreal devreal left a comment

Choose a reason for hiding this comment

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

Just a grammar fix, otherwise looks good

opal_class_t *opal_class;
const char *obj_name = NULL;

/* we are actually evaulating a pointer to an OMPI MPI opaque handle */
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/* we are actually evaulating a pointer to an OMPI MPI opaque handle */
/* we are actually evaluating a pointer to an OMPI MPI opaque handle */

Copy link
Contributor

@devreal devreal 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. I guess this should be squashed before merge.

Three MPI_T methods - for pvar, cvar, events, can bind
one of these objects to an arbitrary MPI object.

There was verbiage added to the MPI 4.1 standard which states
its erroneous to bind one of these 'T' objects to an invalid
MPI object.  This PR adds code to make an effort at checking
the validity of the arbitrary MPI object argument.

We don't bother with events since only a stub implementation is
currently present.

Related to issue open-mpi#12185.

Signed-off-by: Howard Pritchard <[email protected]>
@hppritcha hppritcha merged commit 7c432fb into open-mpi:main Jul 30, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants