Renamed API amdsmi_dev_get_memory_usage to
amdsmi_get_gpu_memory_usage grep -rli 'amdsmi_dev_get_memory_usage' * | xargs -i@ sed -i 's/amdsmi_dev_get_memory_usage/amdsmi_get_gpu_memory_usage/g' @ Change-Id: I04f44c7d7c06490d25f136c77ba545c3010a2e18
This commit is contained in:
gecommit door
Naveen Krishna Chatradhi
bovenliggende
cdad242947
commit
84613dcf1d
@@ -1627,7 +1627,7 @@ except AmdSmiException as e:
|
||||
```
|
||||
|
||||
|
||||
## amdsmi_dev_get_memory_usage
|
||||
## amdsmi_get_gpu_memory_usage
|
||||
|
||||
Description: Get the current memory usage
|
||||
|
||||
@@ -1638,7 +1638,7 @@ Input parameters:
|
||||
|
||||
Output: the amount of memory currently being used
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_memory_usage` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_memory_usage` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -1651,7 +1651,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
memory = amdsmi_dev_get_memory_usage(device)
|
||||
memory = amdsmi_get_gpu_memory_usage(device)
|
||||
print(memory)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
Verwijs in nieuw issue
Block a user