Skip to content

Commit

Permalink
Set NVIDIA_DRIVER_CAPABILITIES to all when GPU is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei-urus authored and medyagh committed Aug 20, 2024
1 parent 8d17e2c commit 2957f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/drivers/kic/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func CreateContainerNode(p CreateParams) error { //nolint to suppress cyclomatic
runArgs = append(runArgs, "--ip", p.IP)
}
if p.GPUs != "" {
runArgs = append(runArgs, "--gpus", "all")
runArgs = append(runArgs, "--gpus", "all", "--env", "NVIDIA_DRIVER_CAPABILITIES=all")
}

memcgSwap := hasMemorySwapCgroup()
Expand Down

0 comments on commit 2957f96

Please sign in to comment.