-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: nvidia-persistenced to Nvidia kmod packages #122
Changes from all commits
6319815
bdbe2c5
40da985
af37c69
fd076b0
bd5e101
98e0cc1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=NVIDIA Persistence Daemon | ||
After=load-tesla-kernel-modules.service load-open-gpu-kernel-modules.service | ||
|
||
[Service] | ||
Type=forking | ||
arnaldo2792 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
ExecStart=__NVIDIA_BINDIR__/nvidia-persistenced --user nvidia --verbose | ||
|
||
[Install] | ||
RequiredBy=preconfigured.target |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
u nvidia - "nvidia-persistenced user" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
R __PREFIX__/lib/modules/__KERNEL_VERSION__/kernel/drivers/extra/video/nvidia/tesla - - - - - | ||
d __PREFIX__/lib/modules/__KERNEL_VERSION__/kernel/drivers/extra/video/nvidia/tesla 0755 root root - - | ||
D /var/run/nvidia-persistenced 0755 nvidia nvidia - - |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=NVIDIA Persistence Daemon | ||
After=load-tesla-kernel-modules.service load-open-gpu-kernel-modules.service | ||
|
||
[Service] | ||
Type=forking | ||
ExecStart=/usr/libexec/nvidia/tesla/bin/nvidia-persistenced --user nvidia --verbose | ||
|
||
[Install] | ||
RequiredBy=preconfigured.target |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
u nvidia - "nvidia-persistenced user" |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,10 @@ | ||||||||||
[Unit] | ||||||||||
Description=NVIDIA Persistence Daemon | ||||||||||
After=load-tesla-kernel-modules.service load-open-gpu-kernel-modules.service | ||||||||||
bcressey marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
|
||||||||||
[Service] | ||||||||||
Type=forking | ||||||||||
ExecStart=/usr/libexec/nvidia/tesla/bin/nvidia-persistenced --user nvidia --verbose | ||||||||||
|
||||||||||
[Install] | ||||||||||
RequiredBy=preconfigured.target | ||||||||||
Comment on lines
+9
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this doesn't specifically need to run in an early phase of boot, I'd just put it with the Fabric Manager in
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It can run at any time, but we should prefer that it runs earlier rather than later. Downstream customers may not always initialize the GPU device files themselves, so running this unit early ensures that those files are properly set by the time their units begin (as part of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should run before services like |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1 @@ | ||||||
u nvidia - "nvidia-persistenced user" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: since we might use it for something else because the username isn't
Suggested change
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about installing
nvidia-persistenced
in%{_cross_bindir}
, since it is meant to be a system service. The problem with this approach is that if in the future NVIDIA ships otherrun
archives different than thetesla
archive and we have to include it, there might be two versions ofnvidia-persistenced
that would have to be shipped.I think we can keep it as it is, and going forward, we could do some guessing at runtime based on the driver that was loaded to override the path to
nvidia-persistenced
using systemd drop-ins.