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

Fix some SM OSC component initialization issues #9991

Merged
merged 3 commits into from
Feb 8, 2022

Conversation

bwbarrett
Copy link
Member

Fix three mostly unrelated issues that rendered the SM OSC component less than useful:

Fix the bool interpretation, which had a bug that made it impossible
to interpret the strings "false" or "no" properly.

Fix issues uncovered with handling overflow and underflow of the int
type when writing the test.

Add a test for the opal_cstring interface.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
Fix WIN_SHARED initialization and error reporting by pushing the actual
generation of MPI_ERR_RMA_SHARED errors until component selection (from
component query).  Components that don't do FLAVOR_SHARED should just
return -1 for query.  SM, since it should always work for FLAVOR_SHARED,
will return a priority for component_query() for any FLAVOR_SHARED
window, then will generate the MPI_ERR_RMA_SHARED error during
component_select.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
For some reason, the SM OSC component was one of the few components
which did not have an MCA parameter to set priority.  This patch
fixes that.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
@bwbarrett bwbarrett added this to the v5.0.0 milestone Feb 8, 2022
@@ -33,7 +33,7 @@ static void opal_cstring_ctor(opal_cstring_t *obj)
{
*(size_t *) &(obj->length) = 0;
/* make sure the string is null-terminated */
((char *) obj->string)[0] = '\n';
((char *) obj->string)[0] = '\0';
Copy link
Contributor

Choose a reason for hiding this comment

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

Mea culpa, thanks for catching that :(

@bwbarrett bwbarrett merged commit 3f41e0f into open-mpi:master Feb 8, 2022
@bwbarrett bwbarrett deleted the bugfix/osc-sm branch February 8, 2022 16: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.

2 participants