88201d2b79
Updated: rocm_smi.py - Remove all else: clauses from functions where rsmi_ret_ok is part of the if clause, as requested. - rsmi_ret_ok() function already handles unsucessful return codes and gracefully handles them. - Updated check_runtime_status() function to sweep through /sys/class/drm to find active runtime_status. - Updated the message to' AMD GPU device(s) is/are in a low-power state. Check power control/runtime_status' - This clarifies the status of the GPU and tells them where to check for more info. Signed-off-by: Juan Castillo <juan.castillo@amd.com> Co-authored-by: Juan Castillo <juan.castillo@amd.com> Co-authored-by: Maisam Arif <Maisam.Arif@amd.com> Co-authored-by: gabrpham <Gabriel.Pham@amd.com>