[SWDEV-450553] Added gpu memory overdrive to metric function

Signed-off-by: gabrpham <Gabriel.Pham@amd.com>
Change-Id: If7bd6865d641a5a83c594a4d3c57938b1b6dc18e
This commit is contained in:
gabrpham authored and Maisam Arif committed 2024-09-04 12:54:14 -04:00
1 förälder e5569ee925
incheckning 7d8e54d0e1
10 files changed
+133 -12

No files matched your search

+33 -1
Visa fil
@@ -1610,7 +1610,7 @@ except AmdSmiException as e:
### amdsmi_set_gpu_od_clk_info
Description: This function sets the clock frequency information
Description: This function sets the clock frequency information.
It is not supported on virtual machine guest
Input parameters:
@@ -2156,6 +2156,38 @@ except AmdSmiException as e:
print(e)
```
### amdsmi_get_gpu_mem_overdrive_level
Description: Get the GPU memory clock overdrive percent associated with the device with provided
device handle. It is not supported on virtual machine guest
Input parameters:
* `processor_handle` handle for the given device
Output: Overdrive percentage as integer
Exceptions that can be thrown by `amdsmi_get_gpu_mem_overdrive_level` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
Example:
```python
try:
devices = amdsmi_get_processor_handles()
if len(devices) == 0:
print("No GPUs on machine")
else:
for device in devices:
od_level = amdsmi_get_gpu_mem_overdrive_level(dev)
print(od_level)
except AmdSmiException as e:
print(e)
```
### amdsmi_get_clk_freq
Description: Get the list of possible system clock speeds of device for a