Renamed API amdsmi_get_vram_usage to
amdsmi_get_gpu_vram_usage
grep -rli 'amdsmi_get_vram_usage' * | xargs -i@ sed -i
's/amdsmi_get_vram_usage/amdsmi_get_gpu_vram_usage/g' @
Change-Id: Ieac19b7783e5ea0bc2654bd8398d64d4a937be42
[ROCm/amdsmi commit: cc1a9d4522]
This commit is contained in:
committed by
Naveen Krishna Chatradhi
szülő
72e7af8198
commit
9807a774bb
@@ -1005,7 +1005,7 @@ def amdsmi_get_fw_info(
|
||||
}
|
||||
|
||||
|
||||
def amdsmi_get_vram_usage(
|
||||
def amdsmi_get_gpu_vram_usage(
|
||||
processor_handle: amdsmi_wrapper.amdsmi_processor_handle,
|
||||
) -> Dict[str, Any]:
|
||||
if not isinstance(processor_handle, amdsmi_wrapper.amdsmi_processor_handle):
|
||||
@@ -1015,7 +1015,7 @@ def amdsmi_get_vram_usage(
|
||||
|
||||
vram_info = amdsmi_wrapper.amdsmi_vram_info_t()
|
||||
_check_res(
|
||||
amdsmi_wrapper.amdsmi_get_vram_usage(
|
||||
amdsmi_wrapper.amdsmi_get_gpu_vram_usage(
|
||||
processor_handle, ctypes.byref(vram_info))
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user