ROCm SMI LIB: Fix rsmiBindings.py.in Mismatch
This commit aligns the rsmiBindings.py.in file's
"notification_type_names" & "rsmi_evt_notification_type_t" with
those found in the rsmiBindings.py file.
Change-Id: I67f36606c505992fb98495651310bd70a1755033
Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
[ROCm/rocm_smi_lib commit: 0c48cd9122]
This commit is contained in:
committed by
Maisam Arif
parent
aad878c1d5
commit
02a862bde1
@@ -4,6 +4,29 @@ Full documentation for rocm_smi_lib is available at [https://rocm.docs.amd.com/]
|
||||
|
||||
***All information listed below is for reference and subject to change.***
|
||||
|
||||
## rocm_smi_lib for ROCm 6.1.2
|
||||
|
||||
### Added
|
||||
|
||||
- **Added Ring Hang event**
|
||||
Added `RSMI_EVT_NOTIF_RING_HANG` to the possible events in the `rsmi_evt_notification_type_t` enum.
|
||||
|
||||
### Changed
|
||||
|
||||
- N/A
|
||||
|
||||
### Optimized
|
||||
|
||||
- N/A
|
||||
|
||||
### Fixed
|
||||
|
||||
- N/A
|
||||
|
||||
### Known Issues
|
||||
|
||||
- N/A
|
||||
|
||||
## rocm_smi_lib for ROCm 6.1.1
|
||||
|
||||
### Added
|
||||
|
||||
@@ -311,6 +311,7 @@ typedef struct {
|
||||
* Event notification event types
|
||||
*/
|
||||
typedef enum {
|
||||
RSMI_EVT_NOTIF_NONE = KFD_SMI_EVENT_NONE, //!< Unused
|
||||
RSMI_EVT_NOTIF_VMFAULT = KFD_SMI_EVENT_VMFAULT, //!< VM page fault
|
||||
RSMI_EVT_NOTIF_FIRST = RSMI_EVT_NOTIF_VMFAULT,
|
||||
RSMI_EVT_NOTIF_THERMAL_THROTTLE = KFD_SMI_EVENT_THERMAL_THROTTLE,
|
||||
|
||||
@@ -107,8 +107,8 @@ notification_type_names = ['VM_FAULT', 'THERMAL_THROTTLE', 'GPU_PRE_RESET', 'GPU
|
||||
|
||||
class rsmi_evt_notification_type_t(c_int):
|
||||
RSMI_EVT_NOTIF_NONE = 0
|
||||
RSMI_EVT_NOTIF_FIRST = RSMI_EVT_NOTIF_NONE
|
||||
RSMI_EVT_NOTIF_VMFAULT = 1
|
||||
RSMI_EVT_NOTIF_FIRST = RSMI_EVT_NOTIF_VMFAULT
|
||||
RSMI_EVT_NOTIF_THERMAL_THROTTLE = 2
|
||||
RSMI_EVT_NOTIF_GPU_PRE_RESET = 3
|
||||
RSMI_EVT_NOTIF_GPU_POST_RESET = 4
|
||||
|
||||
@@ -134,10 +134,11 @@ class rsmi_dev_perf_level_t(c_int):
|
||||
RSMI_DEV_PERF_LEVEL_UNKNOWN = 0x100
|
||||
|
||||
|
||||
notification_type_names = ['VM_FAULT', 'THERMAL_THROTTLE', 'GPU_RESET']
|
||||
notification_type_names = ['VM_FAULT', 'THERMAL_THROTTLE', 'GPU_PRE_RESET', 'GPU_POST_RESET', 'RING_HANG']
|
||||
|
||||
|
||||
class rsmi_evt_notification_type_t(c_int):
|
||||
RSMI_EVT_NOTIF_NONE = 0
|
||||
RSMI_EVT_NOTIF_VMFAULT = 1
|
||||
RSMI_EVT_NOTIF_FIRST = RSMI_EVT_NOTIF_VMFAULT
|
||||
RSMI_EVT_NOTIF_THERMAL_THROTTLE = 2
|
||||
|
||||
Reference in New Issue
Block a user