Files
rocm-systems/amdsmi_cli
Castillo, Juan 2e8aaf02c9 [SWDEV-534728] Fixed deep_sleep status does not work with --json flag (#413)
- When in json output mode the .rstrip function does not work due to dict obj type.
	- The clk_value is now checked for dict instance before extracting the value.
	- If clk_value is a dict then the .get() function is used to extract the value.
	- Else it is a string obj which uses .split() to extract the value.
	- If clk_value is < min_clk_value then deep_sleep is set to ENABLED
    - initialize clk_value and min_clk_value to 0 for each loop.
    - fix if/else for better readability

---------

Signed-off-by: Juan Castillo <juan.castillo@amd.com>
2025-05-30 16:45:32 -05:00
..
2024-11-11 16:49:17 -04:00

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.