amdsmi_cli: Fix issues in cpu API "cpu_lclk_dpm_level"

- Fix issues in cpu API "cpu_lclk_dpm_level"
  - Fix issue for invalid core id
  - Update the error message for invalid devices

Change-Id: I71216ff72f89cfe0c86928ae3dce1f88eae91665


[ROCm/amdsmi commit: 256907989b]
이 커밋은 다음에 포함됨:
khashaik
2024-01-02 03:07:34 -05:00
커밋한 사람 Galantsev, Dmitrii
부모 8bd95a26b4
커밋 323cf14a9c
3개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
+1 -1
파일 보기
@@ -119,7 +119,7 @@ class AmdSmiDeviceNotFoundException(AmdSmiException):
self.command = command
self.output_format = outputformat
common_message = f"Can not find a GPU with the corresponding identifier: '{self.command}'"
common_message = f"Can not find a device with the corresponding identifier: '{self.command}'"
self.json_message["error"] = common_message
self.json_message["code"] = self.value