Fixed None event being read in AmdSmiEventReader

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


[ROCm/amdsmi commit: 3aa62b082a]
This commit is contained in:
Maisam Arif
2024-05-29 21:20:59 -05:00
committed by Maisam Arif
parent 486db45f90
commit 8bcf57fd99
@@ -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(