Fixed cli issue with empty cpu/core parameter
Change-Id: Id0fee74357a56baaec59ca5359eb00a65cfd6185
Signed-off-by: gabrpham <Gabriel.Pham@amd.com>
[ROCm/amdsmi commit: 0143041262]
Этот коммит содержится в:
@@ -4,6 +4,26 @@ Full documentation for amd_smi_lib is available at [https://rocm.docs.amd.com/pr
|
||||
|
||||
***All information listed below is for reference and subject to change.***
|
||||
|
||||
## amd_smi_lib for ROCm 6.2.1
|
||||
|
||||
### Additions
|
||||
|
||||
- N/A
|
||||
|
||||
### Optimizations
|
||||
|
||||
- N/A
|
||||
|
||||
### Fixes
|
||||
|
||||
- **Fixed TypeError in `amd-smi process -G`**.
|
||||
|
||||
- **Updated CLI error strings to handle empty and invalid GPU/CPU inputs**.
|
||||
|
||||
### Known Issues
|
||||
|
||||
- N/A
|
||||
|
||||
## amd_smi_lib for ROCm 6.2.0
|
||||
|
||||
### Additions
|
||||
|
||||
@@ -375,6 +375,9 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
|
||||
|
||||
def _validate_cpu_core(self, value):
|
||||
if value == '':
|
||||
outputformat = self.helpers.get_output_format()
|
||||
raise amdsmi_cli_exceptions.AmdSmiMissingParameterValueException(value, outputformat)
|
||||
if isinstance(value, str):
|
||||
if value.lower() == "all":
|
||||
return value
|
||||
|
||||
Ссылка в новой задаче
Block a user