dcgmi config#
NAME#
dcgmi-config - get, set, and enforce GPU configuration
SYNOPSIS#
dcgmi config --get [--group <group-id>] [--verbose] [--json]
[--host <address>]
dcgmi config --set [--group <group-id>] <configuration-options>
[--host <address>]
dcgmi config --enforce [--group <group-id>] [--host <address>]
DESCRIPTION#
dcgmi config reads and changes the target configuration maintained by DCGM
for a GPU group. --set updates the requested properties and applies them.
--enforce reapplies the stored target configuration when current GPU state
has drifted. The default target is the built-in all-GPU group.
Changing GPU configuration generally requires administrative privileges and can affect running workloads.
OPTIONS#
Operation selection#
--getDisplay current and target configuration. The report includes supported properties such as application clocks, ECC mode, power limit, compute mode, and workload power profiles.
--setSet one or more configuration properties. At least one configuration option is required.
--enforceReapply the target configuration to every GPU in the selected group.
Targets and output#
-g <group-id>,--group <group-id>Select a persistent GPU group. The default is the built-in all-GPU group.
-v,--verboseWith
--get, display configuration separately for each GPU.-j,--jsonWith
--get, format the configuration body as JSON. DCGM 4.6 can append a plain-text homogeneity notice after the JSON document. See JSON output.
Configuration options#
-e <0|1>,--eccmode <0|1>Disable or enable ECC mode.
-s <0|1>,--syncboost <0|1>Disable or enable synchronized boost for the group.
-a <memory,sm>,--appclocks <memory,sm>Set the memory and SM application clocks in MHz.
-P <watts>,--powerlimit <watts>Set the per-GPU power limit in watts. The value must be nonnegative and within the limits supported by each GPU.
-c <mode>,--compmode <mode>Set the compute mode:
0for unrestricted,1for prohibited, or2for exclusive-process mode.-o <index>,--workloadpowerprofile <index>Select a device-specific workload power-profile index. Use
-1to clear every requested profile. Nonnegative indices use the action selected by--workloadpowerprofileaction.-w <action>,--workloadpowerprofileaction <action>Choose how
--workloadpowerprofilechanges the requested profiles:aadds the selected profile,cclears it, andooverwrites the current selection. The default isa.
Common options#
--host <address>Connect to the specified host engine.
-h,--helpPrint generated usage information and exit.
CONFIGURATION VALUE REFERENCE#
Configuration support is GPU-specific. Before configuring a heterogeneous
group, query each member with config --get --verbose and the discovery
command in the following table.
Property |
Accepted value |
How to determine support |
|---|---|---|
ECC mode |
|
|
Synchronized boost |
|
|
Application clocks |
An exact |
|
Power limit |
A nonnegative integer number of watts within the device range |
|
Compute mode |
|
|
Workload power profile |
A supported nonnegative profile index; |
|
If a discovery query reports that a feature is unsupported, there is no valid value for that property on that GPU. For a group, use a clock pair, power limit, or profile index that is valid for every member.
APPLICATION AND LIFETIME#
--set applies every requested property to every GPU in the group and
records the target configuration in the host engine. If any property fails on
any GPU, the command returns an error and identifies the failed GPU/property.
The operation is not a transaction: do not assume that earlier successful
changes were rolled back after a later failure. Verify the result with
config --get --verbose.
Target configuration survives the dcgmi client disconnecting and is
automatically reapplied after a GPU reset or reinitialization. It is
host-engine state, not durable on-disk configuration, so it is not restored
after the host-engine process or system restarts. The applied settings belong
to the individual GPUs and remain when the group used to set them is deleted.
--enforce requires an existing target configuration and manually reapplies
it at any time.
The current state can differ from the target because a property is pending,
unsupported, or was changed outside DCGM. Not Specified in the target
column means DCGM has no target for that property; it is not a request to
restore a hardware default.
EXAMPLES#
Display current and target configuration for all GPUs:
$ dcgmi config --get
Set group 1 to exclusive-process mode with a 300 W power limit:
$ dcgmi config --set --group 1 --compmode 2 --powerlimit 300
Add workload power profile 2 to group 5:
$ dcgmi config --set --group 5 --workloadpowerprofile 2 \
--workloadpowerprofileaction a
Clear all requested workload power profiles:
$ dcgmi config --set --workloadpowerprofile -1
Reapply the target configuration for group 1:
$ dcgmi config --enforce --group 1
SEE ALSO#
dcgmi, dcgmi group, dcgmi discovery, Configuration, Workload Power Profile Configuration, Configuration