Renamed API amdsmi_get_driver_version to
amdsmi_get_gpu_driver_version grep -rli 'amdsmi_get_driver_version' * | xargs -i@ sed -i 's/amdsmi_get_driver_version/amdsmi_get_gpu_driver_version/g' @ Change-Id: Ic1dfb17f7595210ec1fcbd5a936fd259e57e9638
This commit is contained in:
committed by
Naveen Krishna Chatradhi
parent
ac1b857f24
commit
8c8f41f893
@@ -263,7 +263,7 @@ except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
## amdsmi_get_driver_version
|
||||
## amdsmi_get_gpu_driver_version
|
||||
Description: Returns the version string of the driver
|
||||
|
||||
Input parameters:
|
||||
@@ -271,7 +271,7 @@ Input parameters:
|
||||
|
||||
Output: Driver version string that is handling the device
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_get_driver_version` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_driver_version` function:
|
||||
* `AmdSmiParameterException`
|
||||
* `AmdSmiLibraryException`
|
||||
|
||||
@@ -279,7 +279,7 @@ Example:
|
||||
```python
|
||||
try:
|
||||
device = amdsmi_get_processor_handles()[0]
|
||||
print("Driver version: ", amdsmi_get_driver_version(device))
|
||||
print("Driver version: ", amdsmi_get_gpu_driver_version(device))
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user