Renamed API amdsmi_init_event_notification
to amdsmi_init_gpu_event_notification grep -rli 'amdsmi_init_event_notification' * | xargs -i@ sed -i 's/amdsmi_init_event_notification/amdsmi_init_gpu_event_notification/g' @ Change-Id: I6a45d38836f9d4221e3e5159370d4b6791fecca5
Этот коммит содержится в:
коммит произвёл
Naveen Krishna Chatradhi
родитель
828908424d
Коммит
2ad8b91e0e
@@ -315,7 +315,7 @@ class AmdSmiEventReader:
|
||||
for event_type in event_types:
|
||||
mask |= (1 << (int(event_type) - 1))
|
||||
|
||||
_check_res(amdsmi_wrapper.amdsmi_init_event_notification(processor_handle))
|
||||
_check_res(amdsmi_wrapper.amdsmi_init_gpu_event_notification(processor_handle))
|
||||
_check_res(amdsmi_wrapper. amdsmi_set_gpu_event_notification_mask(
|
||||
processor_handle, ctypes.c_uint64(mask)))
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user