-
Notifications
You must be signed in to change notification settings - Fork 38
Fix nvidia fallback services failing to start #475
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
base: develop
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -188,6 +188,8 @@ tar -xf %{_cross_datadir}/bottlerocket/kernel-devel.tar.xz | |
| # This recipe was based in the NVIDIA yum/dnf specs: | ||
| # https://github.com/NVIDIA/yum-packaging-precompiled-kmod | ||
|
|
||
| %build | ||
|
|
||
|
Contributor
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. Two nits:
|
||
| # Begin open driver build | ||
| pushd NVIDIA-Linux-%{_cross_arch}-%{tesla_ver}/kernel-open | ||
|
|
||
|
|
@@ -256,7 +258,7 @@ pushd NVIDIA-Linux-%{_cross_arch}-%{tesla_ver}/supported-gpus | |
| jq -r '.chips[] | select(.features[] | contains("kernelopen")) | | ||
| select(.devid != "0x1DB1" | ||
| and .devid != "0x1DB5" | ||
| and .devid != "0x1DEB8" | ||
| and .devid != "0x1EB8" | ||
|
Contributor
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. In your PR description, can you add the testing you did here to validate that |
||
| and .devid != "0x1EB4" | ||
| and .devid != "0x2237")' supported-gpus.json | jq -s '{"open-gpu": .}' > open-gpu-supported-devices.json | ||
| # confirm "NVIDIA H100" is in the resulting file to catch shape changes | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,4 @@ ExecStart=/usr/bin/systemctl stop grid-license-check.timer --no-block | |
| RemainAfterExit=true | ||
|
Contributor
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. The commit message is not well formatted and confusing. Could you please expand on how your change fixes the problem with non-k8s variants? Also, should the service run
Contributor
Author
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. Updated the commit message with more details. The services can start at the same time as |
||
|
|
||
| [Install] | ||
| WantedBy=nvidia-k8s-device-plugin.service | ||
| WantedBy=nvidia-gridd.service | ||
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.
In the commit message, or even in this file, explain that this unit doesn't need an
Installsection because the service will be started by a timer.But also, you must guarantee that the service will start as soon as we reach
multi-user.target. If you validated this, call it out in the PR description. And in the commit message, call out why the wanted ordering is preserved (e.g.timers.targetrun before, in parallel, aftermulti-user.targetwhichever is the case we want).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.
Updated the commit message with more info about this.
We don't need to wait for
multiuser.targetfor this service. It was already setup to run afternvidia-gridd.servicewhich is installed inpreconfigured.target. This change shouldn't affect the ordering or install sincetimers.targetwas always going to install this service.