-
Notifications
You must be signed in to change notification settings - Fork 124
[L0] Enable Sysman Thru Env by default and have zesInit be optional #2242
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
8dc760b to
9029f2e
Compare
-pre-commit PR for oneapi-src/unified-runtime#2242 Signed-off-by: Neil R. Spruit <[email protected]>
9029f2e to
03dc51e
Compare
-pre-commit PR for oneapi-src/unified-runtime#2242 Signed-off-by: Neil R. Spruit <[email protected]>
-pre-commit PR for oneapi-src/unified-runtime#2242 Signed-off-by: Neil R. Spruit <[email protected]>
- Enable ZES_ENABLE_SYSMAN=1 by default unless UR_L0_ENABLE_SYSMAN_ENV_DEFAULT==0. - Allows for Sysman support thru zeInit() without user input. - Added UR_L0_ENABLE_ZESINIT_DEFAULT to allow for a customer to enable zesInit over sysman env init if the env allows it. - NOTE: UR_L0_ENABLE_ZESINIT_DEFAULT=1 requires UR_L0_ENABLE_SYSMAN_ENV_DEFAULT==0 due to the env overwriting the zesInit support. Signed-off-by: Neil R. Spruit <[email protected]>
03dc51e to
27ad3f7
Compare
| | Environment Variable | Value | Behavior | | ||
| |--------------------------------|-------|----------------------------| | ||
| | UR_L0_ENABLE_SYSMAN_ENV_DEFAULT| 1 | Enables the default SysMan | | ||
| | | | environment initialization | | ||
| | | | by setting | | ||
| | | | `ZES_ENABLE_SYSMAN` to "1".| | ||
| | | 0 | Disables the default SysMan| | ||
| | | | environment initialization.| | ||
| | | unset | Defaults to 1, enabling the| | ||
| | | | SysMan environment | | ||
| | | | initialization. | | ||
| | UR_L0_ENABLE_ZESINIT_DEFAULT | 1 | Enables the default SysMan | | ||
| | | | initialization by loading | | ||
| | | | SysMan-related functions | | ||
| | | | and calling `zesInit`. | | ||
| | | 0 | Disables the default SysMan| | ||
| | | | initialization with zesInit| | ||
| | | unset | Defaults to 0, disabling | | ||
| | | | the SysMan initialization | | ||
| | | | thru zesInit. | |
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 feel like these should be described in the env var docs but I don't see any of the other L0 adapter env vars their either.
I think the best place for these would be an L0 reference doc, similar to the CUDA ref doc and HIP ref doc describing all the L0 adapter specific env vars. This could be done in a separate PR, though.
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.
Good point and agreed, let me handle that in a separate PR for all the existing UR_L0_ENV vars.
-pre-commit PR for oneapi-src/unified-runtime#2242 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.
I think I'd preferred a single env variable with three states, but this is also fine.
-pre-commit PR for oneapi-src/unified-runtime#2242 Signed-off-by: Neil R. Spruit <[email protected]>
[L0] Enable Sysman Thru Env by default and have zesInit be optional
…15894) -pre-commit PR for oneapi-src/unified-runtime#2242 Signed-off-by: Neil R. Spruit <[email protected]>
UR_L0_ENABLE_SYSMAN_ENV_DEFAULT==0.
zesInit over sysman env init if the env allows it.
UR_L0_ENABLE_SYSMAN_ENV_DEFAULT==0 due to the env overwriting the
zesInit support.