-
Notifications
You must be signed in to change notification settings - Fork 911
opal/memory: Move Memory Allocation Hooks usage from openib #1351
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
#include "opal/mca/mca.h" | ||
#include "opal/mca/memory/memory.h" | ||
#include "opal/constants.h" | ||
#include "opal/memoryhooks/memory.h" | ||
|
||
#include "opal/mca/memory/linux/memory_linux.h" | ||
|
||
|
@@ -734,7 +735,10 @@ static check_result_t check(const char *name) | |
} | ||
} | ||
|
||
/* OMPI's init function */ | ||
|
||
/* This function is called on loading libmpi in case system has Memory Allocation Hooks | ||
* (see ompi/runtime/ompi_mpi_init.c for details) | ||
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does OSHMEM need this functionality, too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OSHMEM can use too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. Should probably update the comment to be a bit more generic. And per my other comments, we might want to make this functionality opt-in vs. global. |
||
void opal_memory_linux_malloc_init_hook(void) | ||
{ | ||
check_result_t r1, lp, lpp; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a huge abstraction violation: you cannot have one component directly call another component.