Renamed API amdsmi_dev_get_subsystem_id to

amdsmi_get_gpu_subsystem_id

grep -rli 'amdsmi_dev_get_subsystem_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_subsystem_id/amdsmi_get_gpu_subsystem_id/g' @

Change-Id: I64616ac4c001f7761b8d83120d05d21c5c8e763f


[ROCm/amdsmi commit: 14f1367d6b]
This commit is contained in:
Deepak Mewar
2023-02-25 07:08:28 -05:00
committed by Naveen Krishna Chatradhi
parent 06cedb0eed
commit cccbca0e65
10 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -2986,7 +2986,7 @@ except AmdSmiException as e:
print(e)
```
## amdsmi_dev_get_subsystem_id
## amdsmi_get_gpu_subsystem_id
Description: Get the subsystem device id associated with the device with provided device handle.
Input parameters:
@@ -2995,7 +2995,7 @@ Input parameters:
Output: subsystem device id
Exceptions that can be thrown by `amdsmi_dev_get_subsystem_id` function:
Exceptions that can be thrown by `amdsmi_get_gpu_subsystem_id` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -3008,7 +3008,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
id = amdsmi_dev_get_subsystem_id(device)
id = amdsmi_get_gpu_subsystem_id(device)
print(id)
except AmdSmiException as e:
print(e)