-
Notifications
You must be signed in to change notification settings - Fork 35
Disable memory poisoning in DisjointPool by default #633
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
Conversation
include/umf/pools/pool_disjoint.h
Outdated
@@ -58,6 +58,9 @@ typedef struct umf_disjoint_pool_params_t { | |||
|
|||
/// Name used in traces | |||
const char *Name; | |||
|
|||
/// Whether the pool is limited to host memory | |||
int HostMemory; |
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 should be some generics bit flags that we can add to.
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.
I've disabled poisoning always in DisjointPool for now and created an issue for discussion on the way the optional memory poisoning should be implemented: #634
59b1fa2
to
de92b8a
Compare
Please create macro or function to conditionally poison block - so we have only one ifdef in the code. |
ASan throws an error whenever the memory poison is called for the memory allocated on GPU: "AddressSanitizer: CHECK failed: asan_mapping.h:359 "((AddrIsInMem(p))) != (0)" (0x0, 0x0)". This commit disables poisoning.
de92b8a
to
3fe23a3
Compare
I've created two functions for wrapping ifdefs, please verify. |
ASan throws an error whenever the memory poison is called for the memory allocated on GPU:
"AddressSanitizer: CHECK failed: asan_mapping.h:359 "((AddrIsInMem(p))) != (0)" (0x0, 0x0)".
This commit disables poisoning by default and adds a new parameter to Disjoint Pool params struct that allows to enable the poisoning.
Description
Checklist