diff --git a/projects/amdsmi/CHANGELOG.md b/projects/amdsmi/CHANGELOG.md index dec23bb3c0..915f52bbd7 100644 --- a/projects/amdsmi/CHANGELOG.md +++ b/projects/amdsmi/CHANGELOG.md @@ -4,6 +4,25 @@ 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.4.0 + +### Added + +### Changed + +### Removed + +### Optimized + +- **Modified `amd-smi` CLI to allow case insensitive arguments if the argument does not begin with a single dash**. + - With this change `amd-smi version` and `amd-smi VERSION` will now yield the same output. + - `amd-smi static --bus` and `amd-smi STATIC --BUS` will produce identical results. + - `amd-smi static -b` and `amd-smi static -B` will still return different results (-b for bus and -B for board). + +### Resolved issues + +### Upcoming changes + ## amd_smi_lib for ROCm 6.3.0 ### Added diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_cli.py b/projects/amdsmi/amdsmi_cli/amdsmi_cli.py index 15fe9051c2..ddec9921bb 100755 --- a/projects/amdsmi/amdsmi_cli/amdsmi_cli.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_cli.py @@ -100,6 +100,8 @@ if __name__ == "__main__": except NameError: logging.debug("argcomplete module not found. Autocomplete will not work.") + sys.argv = [arg.lower() if arg.startswith('--') or not arg.startswith('-') + else arg for arg in sys.argv] args = amd_smi_parser.parse_args(args=None if sys.argv[1:] else ['--help']) # Handle command modifiers before subcommand execution