Renamed API amdsmi_dev_get_memory_total to
amdsmi_get_gpu_memory_total grep -rli 'amdsmi_dev_get_memory_total' * | xargs -i@ sed -i 's/amdsmi_dev_get_memory_total/amdsmi_get_gpu_memory_total/g' @ Change-Id: I06dc20f4bf783c0ee824a6d4b4f7162166c598cb
This commit is contained in:
1 والد
dec22a9b44
کامیت
cdad242947
9 files changed
+18
-18
No files matched your search
@@ -1558,7 +1558,7 @@ except AmdSmiException as e:
|
||||
```
|
||||
|
||||
|
||||
## amdsmi_dev_get_memory_total
|
||||
## amdsmi_get_gpu_memory_total
|
||||
|
||||
Description: Get the total amount of memory that exists
|
||||
|
||||
@@ -1569,7 +1569,7 @@ Input parameters:
|
||||
|
||||
Output: total amount of memory
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_memory_total` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_memory_total` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -1582,7 +1582,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
memory = amdsmi_dev_get_memory_total(device)
|
||||
memory = amdsmi_get_gpu_memory_total(device)
|
||||
print(memory)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
Reference in new issue
Block a user