-
Notifications
You must be signed in to change notification settings - Fork 444
Allow cdi mode to work with --gpus flag #894
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
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 |
|---|---|---|
|
|
@@ -74,6 +74,12 @@ var _ = Describe("docker", Ordered, func() { | |
| Expect(containerOutput).To(Equal(hostOutput)) | ||
| }) | ||
|
|
||
| It("should support automatic CDI spec generation with the --gpus flag", func(ctx context.Context) { | ||
|
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. Judging by the CI check names I see have run on this PR -- this test wasn't executed on those, right? (I was looking for some kind of If this test ran on this PR -- can you point me to a log? If this test did not run on this PR -- can you briefly explain where/when we run this test? Also, did you run this manually? (I trust that you did all the right things here; this is just a good opportunity for me to learn what we do/have)
Member
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. I don't think that this triggered the e2e tests, and if it did, I think it probably failed. We definitely need to improve the visibility / traceability of the tests. One issue is that we trigger the tests once the images are built, but this does not seem to trigger a "checks" entry at a PR level. |
||
| containerOutput, _, err := r.Run("docker run --rm -i --gpus=all --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=runtime.nvidia.com/gpu=all ubuntu nvidia-smi -L") | ||
| Expect(err).ToNot(HaveOccurred()) | ||
| Expect(containerOutput).To(Equal(hostOutput)) | ||
| }) | ||
|
|
||
| It("should support the --gpus flag using the nvidia-container-runtime", func(ctx context.Context) { | ||
| containerOutput, _, err := r.Run("docker run --rm -i --runtime=nvidia --gpus all ubuntu nvidia-smi -L") | ||
| Expect(err).ToNot(HaveOccurred()) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Did this run as part of the CI checks on this PR?
Maybe in https://github.com/NVIDIA/nvidia-container-toolkit/actions/runs/13163645114/job/36738412538?pr=894#step:5:80?
Need to get used to interpreting such test runner log. I see
ok github.com/NVIDIA/nvidia-container-toolkit/internal/runtime 0.059s coverage: 39.6% of statements, but I see no mention ofTestNewSpecModifier, or of any of the strings below such as "csv mode removes nvidia-container-runtime-hook".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.
We don't currently have verbose output enabled for the tests. Running locally with the diff: