Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gjulianm committed Jan 28, 2025
1 parent aa3da8e commit 3887214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gpu/cgroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const (
systemdDeviceAllowDir = "run/systemd/transient"
cgroupDeviceAllowFile = "devices.allow"
cgroupDeviceAllowDir = "sys/fs/cgroup/devices"
nvidiaDeviceAllow = "DeviceAllow=char-nvidia rwm\n"
nvidiaCgroupAllow = "c 195:* rwm\n"
nvidiaDeviceAllow = "DeviceAllow=char-nvidia rwm\n" // Allow access to the NVIDIA character devices
nvidiaCgroupAllow = "c 195:* rwm\n" // 195 is the major number for the NVIDIA character devices
)

type deviceType string
Expand Down

0 comments on commit 3887214

Please sign in to comment.