f0453c2c75
The xgmi_metrics_info variable was being referenced before assignment when no destination GPUs were found or when the API call failed. This caused an UnboundLocalError. Fixed this by initializing xgmi_metrics_info with empty links structure. Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
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.