[SWDEV-482412] Optimized PCIe Bandwidth gpu_metrics calls
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com> Change-Id: Ib37d232b94a080e9b490dd065628d2567aaf4642
Этот коммит содержится в:
@@ -810,7 +810,7 @@ except AmdSmiException as e:
|
||||
|
||||
### amdsmi_get_pcie_info
|
||||
|
||||
Description: Returns the pcie metric and static information for the given GPU.
|
||||
Description: Returns the pcie metric and static information for the given GPU. For accurate PCIe Bandwidth measurements it is recommended to use this function once per 1000ms
|
||||
It is not supported on virtual machine guest
|
||||
|
||||
Input parameters:
|
||||
|
||||
@@ -4073,12 +4073,12 @@ def amdsmi_get_gpu_metrics_header_info(
|
||||
header_info = amdsmi_wrapper.amd_metrics_table_header_t()
|
||||
_check_res(
|
||||
amdsmi_wrapper.amdsmi_get_gpu_metrics_header_info(
|
||||
ctypes.byref(header_info)
|
||||
processor_handle, ctypes.byref(header_info)
|
||||
)
|
||||
)
|
||||
|
||||
return {
|
||||
"structure_size": header_info.structure_size.value,
|
||||
"format_revision": header_info.format_revision.value,
|
||||
"content_revision": header_info.content_revision.value
|
||||
"structure_size": header_info.structure_size,
|
||||
"format_revision": header_info.format_revision,
|
||||
"content_revision": header_info.content_revision
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user