From f722cec637a4a4bc8c64e57e5854589bd7fb06a2 Mon Sep 17 00:00:00 2001 From: "Gill, Harkirat" Date: Thu, 13 Mar 2025 05:59:34 -0400 Subject: [PATCH] [ROCm/ROCm#4476] Update amdsmi-cli-tool.md to include partition cmd (#179) Update amdsmi-cli-tool.md to include partition cmd Signedoff-by: Gill, Harkirat [ROCm/amdsmi commit: 36a965b5c75ddf42fad91e1436cda79ec7997ed5] --- .../amdsmi/docs/how-to/amdsmi-cli-tool.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/projects/amdsmi/docs/how-to/amdsmi-cli-tool.md b/projects/amdsmi/docs/how-to/amdsmi-cli-tool.md index 3454a80344..6d59803657 100644 --- a/projects/amdsmi/docs/how-to/amdsmi-cli-tool.md +++ b/projects/amdsmi/docs/how-to/amdsmi-cli-tool.md @@ -55,6 +55,7 @@ AMD-SMI Commands: reset Reset options for devices monitor (dmon) Monitor metrics for target devices xgmi Displays xgmi information of the devices + partition Displays partition information of the devices ``` Example commands: @@ -724,6 +725,39 @@ Command Modifiers: DEBUG, INFO, WARNING, ERROR, CRITICAL ``` +(cmd-partition)= +### amd-smi partition + +Displays partition information of the devices. + +```shell-session +~$ amd-smi partition --help +usage: amd-smi partition [-h] [-g GPU [GPU ...]] [-c] [-m] [-a] [--json | --csv] + [--file FILE] [--loglevel LEVEL] + +If no GPU is specified, returns information for all GPUs on the system. +If no partition argument is provided, all partition information will be displayed. + +partition arguments: + -h, --help show this help message and exit + -g, --gpu GPU [GPU ...] Select a GPU ID, BDF, or UUID from the possible choices: + ID: 0 | BDF: 0000:01:00.0 | UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + ID: 1 | BDF: 0001:01:00.0 | UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + ID: 2 | BDF: 0002:01:00.0 | UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + ID: 3 | BDF: 0003:01:00.0 | UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + all | Selects all devices + -c, --current display the current partition information + -m, --memory display the current memory partition mode and capabilities + -a, --accelerator display accelerator partition information + +Command Modifiers: + --json Displays output in JSON format (human readable by default). + --csv Displays output in CSV format (human readable by default). + --file FILE Saves output into a file on the provided path (stdout by default). + --loglevel LEVEL Set the logging level from the possible choices: + DEBUG, INFO, WARNING, ERROR, CRITICAL +``` + (cli-ex-static)= ### Example output from amd-smi static