Updated amdsmi_get_driver_info() to handle empty strings (#126)
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
[ROCm/amdsmi commit: 9d2bbcf14d]
This commit is contained in:
@@ -2297,12 +2297,18 @@ def amdsmi_get_gpu_driver_info(
|
||||
)
|
||||
)
|
||||
|
||||
return {
|
||||
driver_info = {
|
||||
"driver_name": info.driver_name.decode("utf-8"),
|
||||
"driver_version": info.driver_version.decode("utf-8"),
|
||||
"driver_date": info.driver_date.decode("utf-8")
|
||||
}
|
||||
|
||||
for key, value in driver_info.items():
|
||||
if value == "":
|
||||
driver_info[key] = "N/A"
|
||||
|
||||
return driver_info
|
||||
|
||||
|
||||
def amdsmi_get_power_info(
|
||||
processor_handle: amdsmi_wrapper.amdsmi_processor_handle,
|
||||
|
||||
Reference in New Issue
Block a user