Change API to get the driver date
Support the driver date from libdrm. Change-Id: I88e694732b538220e11fdb4029712bb5a6f44380
This commit is contained in:
@@ -302,17 +302,17 @@ except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
### amdsmi_get_gpu_driver_version
|
||||
### amdsmi_get_gpu_driver_info
|
||||
|
||||
Description: Returns the version string of the driver
|
||||
Description: Returns the info of the driver
|
||||
|
||||
Input parameters:
|
||||
|
||||
* `processor_handle` dev for which to query
|
||||
|
||||
Output: Driver version string that is handling the device
|
||||
Output: Driver info that is handling the device
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_driver_version` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_driver_info` function:
|
||||
|
||||
* `AmdSmiParameterException`
|
||||
* `AmdSmiLibraryException`
|
||||
@@ -322,7 +322,7 @@ Example:
|
||||
```python
|
||||
try:
|
||||
device = amdsmi_get_processor_handles()[0]
|
||||
print("Driver version: ", amdsmi_get_gpu_driver_version(device))
|
||||
print("Driver info: ", amdsmi_get_gpu_driver_info(device))
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user