forked from ROCm/rocm_smi_lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SWDEV-381630] Add reset partition functionality
Updates: * Added rsmi_dev_compute_partition_reset & rsmi_dev_nps_mode_reset * Added --resetcomputepartition and --resetnpsmode python smi calls * Added temp data files rocmsmi_boot_compute_partition_<device num> & rocmsmi_boot_nps_mode_partition_<device num>, writes UNKNOWN if data cannot be read or device does not support * Cleaned up NPS & compute API documentation * Added creation and reading of API temp files (used in reset functionality) * Cleaned up output of rocm_smi_example * Updated rocm_smi_example to check if running with sudo permission before executing write API calls (cleans up erroneous output) * Added template specialization for storing temp data, requires specific rsmi_type_t enums (restrics what data can be stored) * Added storage of temp data, if temp files do not exist * Updated google tests for NPS & compute to include reset API calls Change-Id: I69895a466b97107617e6dbb355737b84499a76c9 Signed-off-by: Charis Poag <[email protected]>
- Loading branch information
1 parent
9ef376c
commit 77c950a
Showing
12 changed files
with
577 additions
and
46 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
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
Binary file not shown.
Oops, something went wrong.