-
Notifications
You must be signed in to change notification settings - Fork 123
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
[L0] Use zesInit for SysMan API usage #2017
Conversation
6286b42
to
20db286
Compare
b8dc1db
to
e90d664
Compare
- Change to using zesInit and zes data structures for accessing L0 SysMan functionality. - Updated Platform & Devices to store zes handles if sysman support is available. - Given Legacy Environment Variable from user, then fallback to old functionality. - Fixed Return code on error to be consistently unsupported enumeration. Signed-off-by: Neil R. Spruit <[email protected]>
- To enable backwards compatability with older L0 Loaders, dynamic load of the zes separate init symbols along with the EXP Device UUID lookup symbol has been added during adapter init. Signed-off-by: Neil R. Spruit <[email protected]>
4e40d94
to
cb7feb1
Compare
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
Hello @pbalcer , please take a look, this reuses the ur loader functions for the function pointer retrieval. See if you disagree with their reuse or if you are fine with this change. |
Signed-off-by: Neil R. Spruit <[email protected]>
Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
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.
lgtm for the most part, but much of this is dead code, especially the zes initialization. Can you please add a test that exercises this code path to make sure the loading of the loader symbol works? (do we have a new enough driver in the CI?)
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
#ifdef _WIN32 | ||
HMODULE processHandle = GetModuleHandle(NULL); | ||
#else | ||
HMODULE processHandle = nullptr; |
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.
nit: this will work, but should technically be RTLD_DEFAULT
(which is NULL anyway, but... :P)
-pre-commit PR for oneapi-src/unified-runtime#2017 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2017 --------- Signed-off-by: Neil R. Spruit <[email protected]> Co-authored-by: Artur Gainullin <[email protected]>
[L0] Use zesInit for SysMan API usage
SysMan functionality.
available.
old functionality.