Change API to get the driver date

Support the driver date from libdrm.

Change-Id: I88e694732b538220e11fdb4029712bb5a6f44380
This commit is contained in:
Bill(Shuzhou) Liu
2023-07-21 08:26:59 -05:00
parent 9077411fcb
commit 55bf9cbe13
12 changed files with 92 additions and 41 deletions
+5 -5
View File
@@ -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)
```