Skip to content

set instance field when creating new group objects #10555

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
Aug 8, 2022

Conversation

hppritcha
Copy link
Member

related to #10524 and #10429

Also related to the isolation concept for sessions (instances in open mpi internal parlance).
See section 11.3 of the MPI 4.0 standard

Signed-off-by: Howard Pritchard [email protected]

@jjhursey
Copy link
Member

bot:ibm:retest

@hppritcha
Copy link
Member Author

@awlauria could you review this when you get a chance?

@@ -121,12 +121,16 @@ ompi_group_t *ompi_group_allocate_plist_w_procs (ompi_proc_t **procs, int group_
new_group->grp_my_rank = MPI_UNDEFINED;
OMPI_GROUP_SET_DENSE(new_group);

if (NULL != orig_group) {
new_group->grp_instance = orig_group->grp_instance;
Copy link
Contributor

@awlauria awlauria Aug 2, 2022

Choose a reason for hiding this comment

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

I don't recall if OBJ_NEW will zero out the struct - should this be initialized to NULL if not set here?

Copy link
Member Author

Choose a reason for hiding this comment

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

probably, good catch

Copy link
Contributor

@awlauria awlauria left a comment

Choose a reason for hiding this comment

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

Just one comment - would be good to null that pointer out.

related to open-mpi#10524 and open-mpi#10429

Also related to the isolation concept for sessions (instances in open mpi internal parlance).
See section 11.3 of the MPI 4.0 standard

Signed-off-by: Howard Pritchard <[email protected]>
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.

4 participants