Added driver_name to amdsmi_cli tool
Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: I8f3d52e0b23298443b2b16afec418cbbbc5f77e0
[ROCm/amdsmi commit: 572bf563d1]
This commit is contained in:
gecommit door
Maisam Arif
bovenliggende
0a655243a4
commit
401d3f229c
@@ -310,7 +310,13 @@ Input parameters:
|
||||
|
||||
* `processor_handle` dev for which to query
|
||||
|
||||
Output: Driver info that is handling the device
|
||||
Output: Dictionary with fields
|
||||
|
||||
Field | Content
|
||||
---|---
|
||||
`driver_name` | driver name
|
||||
`driver_version` | driver_version
|
||||
`driver_date` | driver_date
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_driver_info` function:
|
||||
|
||||
|
||||
@@ -962,6 +962,7 @@ def amdsmi_get_gpu_driver_info(
|
||||
)
|
||||
|
||||
return {
|
||||
"driver_name": info.driver_name.decode("utf-8"),
|
||||
"driver_version": info.driver_version.decode("utf-8"),
|
||||
"driver_date": info.driver_date.decode("utf-8")
|
||||
}
|
||||
|
||||
@@ -774,6 +774,7 @@ class struct_amdsmi_driver_info_t(Structure):
|
||||
|
||||
struct_amdsmi_driver_info_t._pack_ = 1 # source:False
|
||||
struct_amdsmi_driver_info_t._fields_ = [
|
||||
('driver_name', ctypes.c_char * 64),
|
||||
('driver_version', ctypes.c_char * 64),
|
||||
('driver_date', ctypes.c_char * 64),
|
||||
]
|
||||
|
||||
Verwijs in nieuw issue
Block a user