Skip to content

Commit bea8ca0

Browse files
authored
Merge pull request #1270 from elezar/fix-compat-on-csv
Don't inject enable-cuda-compat hook in CSV mode
2 parents 7c91507 + 729c237 commit bea8ca0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/modifier/gated.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ func NewFeatureGatedModifier(logger logger.Interface, cfg *config.Config, image
9292
}
9393

9494
func getCudaCompatModeDiscoverer(logger logger.Interface, cfg *config.Config, driver *root.Driver, hookCreator discover.HookCreator) (discover.Discover, error) {
95+
// We don't support the enable-cuda-compat hook in CSV mode.
96+
if cfg.NVIDIAContainerRuntimeConfig.Mode == "csv" {
97+
return nil, nil
98+
}
99+
95100
// For legacy mode, we only include the enable-cuda-compat hook if cuda-compat-mode is set to hook.
96101
if cfg.NVIDIAContainerRuntimeConfig.Mode == "legacy" && cfg.NVIDIAContainerRuntimeConfig.Modes.Legacy.CUDACompatMode != config.CUDACompatModeHook {
97102
return nil, nil

0 commit comments

Comments
 (0)