Fixed None event being read in AmdSmiEventReader

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I2141421a133c867a5c91d7d18b73141513f1868b


[ROCm/amdsmi commit: 3aa62b082a]
Dieser Commit ist enthalten in:
Maisam Arif verfasst und Maisam Arif committed 2024-05-30 03:28:00 -04:00
1 Ursprung 486db45f90
Commit 8bcf57fd99
1 Datei geändert
+2 -1
+2 -1
Datei anzeigen
@@ -421,7 +421,8 @@ class AmdSmiEventReader:
self.processor_handle = processor_handle
mask = 0
for event_type in event_types:
mask |= (1 << (int(event_type) - 1))
if event_type != AmdSmiEvtNotificationType.NONE:
mask |= (1 << (int(event_type) - 1))
_check_res(amdsmi_wrapper.amdsmi_init_gpu_event_notification(processor_handle))
_check_res(amdsmi_wrapper.amdsmi_set_gpu_event_notification_mask(