f6b1cb9024
The argparse 'choices' parameter was receiving a comma-separated string instead of a list, causing it to treat individual characters as valid choices rather than complete tokens like 'SPX', 'DPX', etc. Fixed by removing the unnecessary join() operation in get_accelerator_choices_types_indices() to return the list directly. This matches the pattern used by get_memory_partition_types(). Now 'amd-smi set -C DPX' and other partition commands work correctly.
AMD SMI CLI tool
A command line tool for manipulating and monitoring the amdgpu kernel;
amd-smi is intended to replace and deprecate the existing
rocm-smi CLI tool.
When using the CLI tool, you should have at least one AMD GPU and the driver installed.
Note
The AMD SMI CLI tool is provided as an example code to aid the development of telemetry tools. The Python or C++ library is recommended as a robust data source.
Find the documentation in the docs/ directory.
Online documentation
Explore the latest documentation on the ROCm documentation portal.