Skip to content

Commit b6efd30

Browse files
committed
Use index and uuid as default device-name-strategies
Signed-off-by: Evan Lezar <[email protected]>
1 parent 52da12c commit b6efd30

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Add support for extracting device major number from `/proc/devices` if `nvidia` is used as a device name over `nvidia-frontend`.
55
* Allow multiple device naming strategies for `nvidia-ctk cdi generate` command. This allows a single
66
CDI spec to be generated that includes GPUs by index and UUID.
7+
* Set the default `--device-name-strategy` for the `nvidia-ctk cdi generate` command to `[index, uuid]`.
78

89
## v1.15.0-rc.3
910
* Fix bug in `nvidia-ctk hook update-ldcache` where default `--ldconfig-path` value was not applied.

cmd/nvidia-ctk/cdi/generate/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (m command) build() *cli.Command {
112112
&cli.StringSliceFlag{
113113
Name: "device-name-strategy",
114114
Usage: "Specify the strategy for generating device names. If this is specified multiple times, the devices will be duplicated for each strategy. One of [index | uuid | type-index]",
115-
Value: cli.NewStringSlice(nvcdi.DeviceNameStrategyIndex),
115+
Value: cli.NewStringSlice(nvcdi.DeviceNameStrategyIndex, nvcdi.DeviceNameStrategyUUID),
116116
Destination: &opts.deviceNameStrategies,
117117
},
118118
&cli.StringFlag{

0 commit comments

Comments
 (0)