Renamed API amdsmi_get_device_bdf to amdsmi_get_gpu_device_bdf

grep -rli 'amdsmi_get_device_bdf' * | xargs -i@ sed -i
's/amdsmi_get_device_bdf/amdsmi_get_gpu_device_bdf/g' @

Change-Id: I3db605f8bdb0a83b1f0f7f300a663c47563ba651
This commit is contained in:
Deepak Mewar
2023-02-25 06:38:47 -05:00
کامیت شده توسط Naveen Krishna Chatradhi
والد 6e6176b04a
کامیت 3fec3b4b4a
9فایلهای تغییر یافته به همراه17 افزوده شده و 17 حذف شده
+3 -3
مشاهده پرونده
@@ -216,7 +216,7 @@ except AmdSmiException as e:
print(e)
```
## amdsmi_get_device_bdf
## amdsmi_get_gpu_device_bdf
Description: Returns BDF of the given device
Input parameters:
@@ -229,7 +229,7 @@ Where:
* `<device>` is 2 hex digits long from 00-1F interval
* `<function>` is 1 hex digit long from 0-7 interval
Exceptions that can be thrown by `amdsmi_get_device_bdf` function:
Exceptions that can be thrown by `amdsmi_get_gpu_device_bdf` function:
* `AmdSmiParameterException`
* `AmdSmiLibraryException`
@@ -237,7 +237,7 @@ Example:
```python
try:
device = amdsmi_get_processor_handles()[0]
print("Device's bdf:", amdsmi_get_device_bdf(device))
print("Device's bdf:", amdsmi_get_gpu_device_bdf(device))
except AmdSmiException as e:
print(e)
```