File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
cmd/nvidia-container-runtime-hook Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,9 @@ func doPrestart() {
9595 if cli .LoadKmods {
9696 args = append (args , "--load-kmods" )
9797 }
98+ if hook .Features .DisableImexChannelCreation .IsEnabled () {
99+ args = append (args , "--no-create-imex-channels" )
100+ }
98101 if cli .NoPivot {
99102 args = append (args , "--no-pivot" )
100103 }
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ type features struct {
2222 MOFED * featureMofed `toml:"mofed,omitempty"`
2323 NVSWITCH * featureNvswitch `toml:"nvswitch,omitempty"`
2424 GDRCopy * featureGdrCopy `toml:"gdrcopy,omitempty"`
25+ // DisableImexChannelCreation ensures that the implicit creation of
26+ // requested IMEX channels is skipped when invoking the nvidia-container-cli.
27+ DisableImexChannelCreation * feature `toml:"disable-imex-channel-creation,omitempty"`
2528}
2629
2730type feature bool
You can’t perform that action at this time.
0 commit comments