Skip to content

Conversation

@bwbarrett
Copy link
Member

Backport of #9441. References #8822.

Remove cruft from common_ofi, including unnecessary includes,
declarations, and OPAL_DECLSPEC annotations on function
definitions (they are only needed on declarations).

Also move one function back into the C_DECLS block and
properly OPAL_DECLSPEC the function.

Signed-off-by: Brian Barrett <[email protected]>
(cherry picked from commit 00a5108)
Test for the features needed to support injecting a memory
monitor in Libfabric, rather than testing for a Libfabric
version.

Signed-off-by: Brian Barrett <[email protected]>
(cherry picked from commit 947b3fe)
The documentation in the header file for the ofi common code had
been neglected, so show some love.  Also add some helpful comments
in understanding the memory monitor injection code.

Signed-off-by: Brian Barrett <[email protected]>
(cherry picked from commit 348152a)
Rename initialization calls to match the MCA terminology
and restructure code to match the calling pattern of
normal components (so during component_register, OFI
components should call common_ofi_mca_register).

Signed-off-by: Brian Barrett <[email protected]>
(cherry picked from commit bf36d24)
Delay initializing the import memory monitor from component
open to a function which should be called immediately before
the Libfabric domain is initialized.  Registering the import
memory monitor requires initializing the patcher memory hooks,
which is not necessary if the OFI fabrics were not selected.

Signed-off-by: Brian Barrett <[email protected]>
(cherry picked from commit 2349f6b)
@jsquyres
Copy link
Member

jsquyres commented Oct 1, 2021

@bwbarrett Would it be ok if I cherry picked 1797341 to this PR (it's the OFI warning fix from #9450)? The cherry pick doesn't apply cleanly to v5.0.x, but does apply cleanly to this branch.

@bwbarrett
Copy link
Member Author

I'll add it; I left this WIP because there's another fix that needs to go in w.r.t the output stream.

@awlauria awlauria added this to the v5.0.0 milestone Oct 1, 2021
jsquyres and others added 2 commits October 5, 2021 19:54
Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 1797341)
The ofi common refactoring patches broke handling of
the verbose flag because I forgot that the input
variable has to live longer than the function (sigh).
Move the output level variable to be a global variable.

Add error checking to the entire mca registration
path, since it was notably lacking.

Even before the refactor, we didn't handle re-setting
verbosity after registering synonyms properly.  This
patch probably isn't perfect in that regards, but
at least is *consistent* in what we do.

Signed-off-by: Brian Barrett <[email protected]>
(cherry picked from commit 5432c32)
Copy link
Member

@gpaulsen gpaulsen left a comment

Choose a reason for hiding this comment

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

All of the cherry-picks from master look good. Also includes commits from PR #9450 and #9454
Thank you.

@gpaulsen gpaulsen merged commit 4ef3d5c into open-mpi:v5.0.x Oct 7, 2021
@bwbarrett bwbarrett deleted the backports/v5.0.x-common-ofi-delay-initializing-patcher branch November 18, 2021 21:00
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