Renamed API amdsmi_dev_get_memory_busy_percent to
amdsmi_get_gpu_memory_busy_percent grep -rli 'amdsmi_dev_get_memory_busy_percent' * | xargs -i@ sed -i 's/amdsmi_dev_get_memory_busy_percent/amdsmi_get_gpu_memory_busy_percent/g' @ Change-Id: I379d8a31074635cd086c1bb0d0e231d3b352725c
Tá an tiomantas seo le fáil i:
tiomanta ag
Naveen Krishna Chatradhi
tuismitheoir
84613dcf1d
tiomantas
ed45afc512
@@ -1688,7 +1688,7 @@ except AmdSmiException as e:
|
||||
```
|
||||
|
||||
|
||||
## amdsmi_dev_get_memory_busy_percent
|
||||
## amdsmi_get_gpu_memory_busy_percent
|
||||
|
||||
Description: Get percentage of time any device memory is being used
|
||||
|
||||
@@ -1698,7 +1698,7 @@ Input parameters:
|
||||
|
||||
Output: percentage of time that any device memory is being used for the specified device.
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_memory_busy_percent` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_memory_busy_percent` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -1711,7 +1711,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
busy_percent = amdsmi_dev_get_memory_busy_percent(device)
|
||||
busy_percent = amdsmi_get_gpu_memory_busy_percent(device)
|
||||
print(busy_percent)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir