Change API to get the driver date
Support the driver date from libdrm.
Change-Id: I88e694732b538220e11fdb4029712bb5a6f44380
[ROCm/amdsmi commit: 55bf9cbe13]
This commit is contained in:
1 szülő
2cd3f6565e
commit
4d4f8a4f8c
12 files changed
+92
-41
No files matched your search
@@ -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