-
Notifications
You must be signed in to change notification settings - Fork 124
[DeviceASAN] Simplify shadow mapping logic for GPU device #2274
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 1 commit
27e3d37
d319540
39b7bc2
7f2c1d9
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 |
|---|---|---|
|
|
@@ -73,6 +73,12 @@ __urdlllocal ur_result_t UR_APICALL urAdapterGet( | |
| return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; | ||
| } | ||
|
|
||
| // Set env AllocateHostAllocationsInHeapExtendedHost to 0, then host and | ||
| // shared usm will have same allocation range on GPU device. This will | ||
| // simplify shadow memory mapping logic on GPU device. | ||
| setenv("NEOReadDebugKeys", "1", 1); | ||
|
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. @nrspruit is it a good idea to set these env variables in the layer? If this is really required, wouldn't it be a better idea to make this into an L0 API? 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. I don't feel comfortable merging this patch. We need confirmation from the NEO folks that this makes sense. 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. No, this is not correct to set this. 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. AllocateHostAllocationsInHeapExtendedHost is a debug key, debug keys cannot be used in production software. They are meant only for experiments. Driver team may remove or change this debug variable at any point of time without any notifications. 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, I will send this request to driver team. Thanks. |
||
| setenv("AllocateHostAllocationsInHeapExtendedHost", "0", 1); | ||
|
|
||
| ur_result_t result = pfnAdapterGet(NumEntries, phAdapters, pNumAdapters); | ||
| if (result == UR_RESULT_SUCCESS && phAdapters) { | ||
| const uint32_t NumAdapters = pNumAdapters ? *pNumAdapters : NumEntries; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.