-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transform Policy API to ListenForPolicyViolations
This adds a new api ListenForPolicyViolations for setting policy for all the gpus instead of individual gpus. The primary modifications include the deprecation of the existing Policy API and the introduction of the ListenForPolicyViolations API. Policy API is deprecated due to usability constraints. Moreover listening to policy violations for one gpu at a time is not very useful. The new API enables users to set policies for all GPUs collectively, eliminating the need to configure individual GPUs separately. Additionally, ListenForPolicyViolations API allows users to register and monitor policy violations across all GPUs concurrently. Policy callbacks are required to be registered only once during the lifetime of the program. Signed-off-by: Dileep Ranganathan <[email protected]>
- Loading branch information
Showing
6 changed files
with
205 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.