ROCM-SMI(1)
π 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.
Hardware-related information:
-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.
Software-related/controlled information:
-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 ofdebug/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
- debian trixie: rocm-smi 6.1.2-1 Β· MIT
- ubuntu questing: rocm-smi 6.1.2-1
- ubuntu resolute: rocm-smi 7.1.1-0ubuntu1 Β· MIT
- ubuntu stonking: rocm-smi 10.0-0ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms