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
This commit is contained in:
Deepak Mewar
2023-02-25 07:47:11 -05:00
committed by Naveen Krishna Chatradhi
parent 508d2612d3
commit cc1a9d4522
8 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -547,7 +547,7 @@ try:
except AmdSmiException as e:
print(e)
```
## amdsmi_get_vram_usage
## amdsmi_get_gpu_vram_usage
Description: Returns total VRAM and VRAM in use
Input parameters:
@@ -560,7 +560,7 @@ Field | Description
`vram_total` | VRAM total
`vram_used`| VRAM currently in use
Exceptions that can be thrown by `amdsmi_get_vram_usage` function:
Exceptions that can be thrown by `amdsmi_get_gpu_vram_usage` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -573,7 +573,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
vram_usage = amdsmi_get_vram_usage(device)
vram_usage = amdsmi_get_gpu_vram_usage(device)
print(vram_usage['vram_used'])
print(vram_usage['vram_total'])
except AmdSmiException as e: