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 authored and Maisam Arif committed 2024-05-30 03:28:00 -04:00
1 vanhempi 486db45f90
commit 8bcf57fd99
1 file changed
+2 -1
@@ -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(