ROCM-SMI(1)

πŸ“¦
version 10.0 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸŽ€ ROCM-SMI πŸ’…

okay bestie, gather round, because this is rocm-smi β€” the manual page for it, specifically, in section 1 of the User Commands manual. it's a tool to monitor AMD accelerators and GPUs. yes, that's the whole NAME section, and yes it's iconic. ✨


✨ SYNOPSIS ✨

usage: rocm-smi [-h] [-V] [-d DEVICE [DEVICE ...]] [--alldevices]
       [--showhw] [-a] [-i] [-v] [-e [EVENT ...]]

              [--showdriverversion] [--showtempgraph] [--showfwinfo [BLOCK
              ...]] [--showmclkrange] [--showmemvendor] [--showsclkrange]
              [--showproductname] [--showserial] [--showuniqueid]
              [--showvoltagerange] [--showbus] [--showpagesinfo]
              [--showpendingpages] [--showretiredpages]
              [--showunreservablepages] [-f] [-P] [-t] [-u] [--showmemuse]
              [--showvoltage] [-b] [-c] [-g] [-l] [-M] [-m] [-o] [-p] [-S] [-s]
              [--showmeminfo TYPE [TYPE ...]] [--showpids [VERBOSE]]
              [--showpidgpus [SHOWPIDGPUS ...]]  [--showreplaycount]
              [--showrasinfo [SHOWRASINFO ...]] [--showvc] [--showxgmierr]
              [--showtopo] [--showtopoaccess] [--showtopoweight]
              [--showtopohops] [--showtopotype] [--showtoponuma]
              [--showenergycounter] [--shownodesbw] [--showcomputepartition]
              [--showmemorypartition] [-r] [--resetfans] [--resetprofile]
              [--resetpoweroverdrive] [--resetxgmierr] [--resetperfdeterminism]
              [--resetcomputepartition] [--resetmemorypartition] [--setclock
              TYPE LEVEL] [--setsclk LEVEL [LEVEL ...]]  [--setmclk LEVEL
              [LEVEL ...]] [--setpcie LEVEL [LEVEL ...]] [--setslevel SCLKLEVEL
              SCLK SVOLT] [--setmlevel MCLKLEVEL MCLK MVOLT] [--setvc POINT
              SCLK SVOLT] [--setsrange SCLKMIN SCLKMAX] [--setextremum min|max
              sclk|mclk CLK] [--setmrange MCLKMIN MCLKMAX] [--setfan LEVEL]
              [--setperflevel LEVEL] [--setoverdrive %] [--setmemoverdrive %]
              [--setpoweroverdrive WATTS] [--setprofile SETPROFILE]
              [--setperfdeterminism SCLK] [--setcomputepartition
              {CPX,SPX,DPX,TPX,QPX,cpx,spx,dpx,tpx,qpx}] [--setmemorypartition
              {NPS1,NPS2,NPS4,NPS8,nps1,nps2,nps4,nps8}] [--rasenable BLOCK
              ERRTYPE] [--rasdisable BLOCK ERRTYPE] [--rasinject BLOCK]
              [--gpureset] [--load FILE | --save FILE] [--autorespond RESPONSE]
              [--loglevel LEVEL] [--json] [--csv]

πŸ’– DESCRIPTION πŸ’–

so the way this works is: that whole wall of flags up there is the description. rocm-smi takes all of them. and then, right under the usage text, the tool announces itself like the main character it is:

AMD ROCm System Management Interface | ROCM-SMI version: 2.2.0

that's the vibe check and it passed. 🫢


🌸 OPTIONS 🌸

options:

  • -h, --help β€” shows this help message and then exits. the "wait what does this do again" button, we love her.
  • --gpureset β€” resets the specified GPU. heads up bestie: exactly one GPU must be specified.
  • --load FILE β€” loads Clock, Fan, Performance and Profile settings from FILE.
  • --save FILE β€” saves Clock, Fan, Performance and Profile settings to FILE.
  • -V, --version β€” shows version information.
  • -d DEVICE [DEVICE ...], --device DEVICE [DEVICE ...] β€” run the command on the device(s) you specify.

Display Options:

  • --alldevices β€” no description given in the source, it's just out here living its truth πŸ’€
  • --showhw β€” shows Hardware details.
  • -a, --showallinfo β€” shows Temperature, Fan and Clock values.

Topology:

  • -i, --showid β€” shows DEVICE IDs.
  • -v, --showvbios β€” shows the VBIOS version.
  • -e [EVENT ...], --showevents [EVENT ...] β€” shows the event list.
  • --showdriverversion β€” shows the kernel driver version.
  • --showtempgraph β€” shows the Temperature Graph.
  • --showfwinfo [BLOCK ...] β€” shows FW information.
  • --showmclkrange β€” shows the mclk range.
  • --showmemvendor β€” shows the GPU memory vendor.
  • --showsclkrange β€” shows the sclk range.
  • --showproductname β€” shows product details.
  • --showserial β€” shows the GPU's Serial Number.
  • --showuniqueid β€” shows the GPU's Unique ID.
  • --showvoltagerange β€” shows the voltage range.
  • --showbus β€” shows the PCI bus number.

Pages information:

  • --showpagesinfo β€” shows retired, pending and unreservable pages. the whole trio ✨
  • --showpendingpages β€” shows pending retired pages.
  • --showretiredpages β€” shows retired pages.
  • --showunreservablepages β€” shows unreservable pages.
  • -f, --showfan β€” shows the current fan speed.
  • -P, --showpower β€” shows the current average or instant socket graphics package power consumption.
  • -t, --showtemp β€” shows the current temperature.
  • -u, --showuse β€” shows the current GPU use.
  • --showmemuse β€” shows the current GPU memory used.
  • --showvoltage β€” shows the current GPU voltage.
  • -b, --showbw β€” shows estimated PCIe use.
  • -c, --showclocks β€” shows the current clock frequencies.
  • -g, --showgpuclocks β€” shows the current GPU clock frequencies.
  • -l, --showprofile β€” shows Compute Profile attributes.
  • -M, --showmaxpower β€” shows the maximum graphics package power this GPU will consume.
  • -m, --showmemoverdrive β€” shows the current GPU Memory Clock OverDrive level.
  • -o, --showoverdrive β€” shows the current GPU Clock OverDrive level.
  • -p, --showperflevel β€” shows the current DPM Performance Level.
  • -S, --showclkvolt β€” shows supported GPU and Memory Clocks and Voltages.
  • -s, --showclkfrq β€” shows supported GPU and Memory Clock.
  • --showmeminfo TYPE [TYPE ...] β€” shows Memory usage information for the given block(s) TYPE.
  • --showpids [VERBOSE] β€” shows current running KFD PIDs (pass details to VERBOSE if you want the detailed version, nosey bestie πŸ‘€).
  • --showpidgpus [SHOWPIDGPUS ...] β€” shows GPUs used by the specified KFD PIDs (all of them if no arg is given).
  • --showreplaycount β€” shows PCIe Replay Count.
  • --showrasinfo [SHOWRASINFO ...] β€” shows RAS enablement information and error counts for the specified block(s) (all if no arg is given).
  • --showvc β€” shows the voltage curve.
  • --showxgmierr β€” shows XGMI error information since the last read.
  • --showtopo β€” shows hardware topology information.
  • --showtopoaccess β€” shows the link accessibility between GPUs.
  • --showtopoweight β€” shows the relative weight between GPUs.
  • --showtopohops β€” shows the number of hops between GPUs.
  • --showtopotype β€” shows the link type between GPUs.
  • --showtoponuma β€” shows the numa nodes.
  • --showenergycounter β€” Energy accumulator that stores amount of energy consumed.
  • --shownodesbw β€” shows the numa nodes.
  • --showcomputepartition β€” shows current compute partitioning.
  • --showmemorypartition β€” shows current memory partition.

Set options:

  • --setclock TYPE LEVEL β€” sets Clock Frequency Level(s) for the specified clock. (requires manual Perf level.)
  • --setsclk LEVEL [LEVEL ...] β€” sets GPU Clock Frequency Level(s). (requires manual Perf level.)
  • --setmclk LEVEL [LEVEL ...] β€” sets GPU Memory Clock Frequency Level(s). (requires manual Perf level.)
  • --setpcie LEVEL [LEVEL ...] β€” sets PCIE Clock Frequency Level(s). (requires manual Perf level.)
  • --setslevel SCLKLEVEL SCLK SVOLT β€” changes the GPU Clock frequency (MHz) and Voltage (mV) for a specific Level.
  • --setmlevel MCLKLEVEL MCLK MVOLT β€” changes the GPU Memory clock frequency (MHz) and Voltage for (mV) a specific Level.
  • --setvc POINT SCLK SVOLT β€” changes the SCLK Voltage Curve (MHz mV) for a specific point.
  • --setsrange SCLKMIN SCLKMAX β€” sets the min and max SCLK speed.
  • --setextremum min|max sclk|mclk CLK β€” sets the min/max of SCLK/MCLK speed.
  • --setmrange MCLKMIN MCLKMAX β€” sets the min and max MCLK speed.
  • --setfan LEVEL β€” sets the GPU Fan Speed (Level or %).
  • --setperflevel LEVEL β€” sets the Performance Level.
  • --setoverdrive % β€” sets the GPU OverDrive level. (requires manual|high Perf level.)
  • --setmemoverdrive % β€” sets the GPU Memory Overclock OverDrive level. (requires manual|high Perf level.)
  • --setpoweroverdrive WATTS β€” sets the maximum GPU power using Power OverDrive, in Watts.
  • --setprofile SETPROFILE β€” specify a Power Profile level (#), or a quoted string of CUSTOM Profile attributes like "# # # #...". (requires manual Perf level.)
  • --setperfdeterminism SCLK β€” sets a clock frequency limit to get minimal performance variation.
  • --setcomputepartition {CPX,SPX,DPX,TPX,QPX,cpx,spx,dpx,tpx,qpx} β€” sets the compute partition.
  • --setmemorypartition {NPS1,NPS2,NPS4,NPS8,nps1,nps2,nps4,nps8} β€” sets the memory partition.
  • --rasenable BLOCK ERRTYPE β€” enables RAS for the specified block and error type.
  • --rasdisable BLOCK ERRTYPE β€” disables RAS for the specified block and error type.
  • --rasinject BLOCK β€” injects RAS poison for the specified block. ONLY WORKS ON UNSECURED BOARDS β€” like, do not try this on a locked-down one, it will simply not eat. πŸ’€

Reset options:

  • -r, --resetclocks β€” resets clocks and OverDrive to default.
  • --resetfans β€” resets fans to automatic (driver) control.
  • --resetprofile β€” resets the Power Profile back to default.
  • --resetpoweroverdrive β€” sets the maximum GPU power back to the device default state.
  • --resetxgmierr β€” resets the XGMI error count.
  • --resetperfdeterminism β€” disables performance determinism.
  • --resetcomputepartition β€” resets to the boot compute partition state.
  • --resetmemorypartition β€” resets to the boot memory partition state.

Auto-response options:

  • --autorespond RESPONSE β€” the response to automatically provide for all prompts. NOT RECOMMENDED, and we mean it β€” you're basically telling the tool to answer for you and it will take you at your word. πŸ™ˆ

Output options:

  • --loglevel LEVEL β€” how much output gets printed for what the program is doing. one of debug/info/warning/error/critical.
  • --json β€” print output in JSON format.
  • --csv β€” print output in CSV format.

πŸ¦‹ SEE ALSO πŸ¦‹

The full documentation for rocm-smi is maintained as a Texinfo manual. If the info and rocm-smi programs are properly installed at your site, then this command

info rocm-smi

should give you access to the complete manual. iykyk 🧚


okay that's the whole thing, you're fully caught up bestie. this was rocm-smi 2.2.0, from November 2024, section ROCM-SMI(1) β€” go forth and monitor those accelerators. slay, periodt, and don't forget to reset your fans. πŸ’œπŸŒˆ

πŸ“¦ where this page comes from