Merge pull request #21180 from rhatdan/nvidia

Make --gpus work with nvidia gpus
This commit is contained in:
openshift-merge-bot[bot]
2024-01-30 14:59:02 +00:00
committed by GitHub
10 changed files with 27 additions and 12 deletions

View File

@@ -119,12 +119,6 @@ var _ = Describe("Podman run device", func() {
Expect(session).Should(ExitCleanly())
})
It("podman run --gpus noop", func() {
session := podmanTest.Podman([]string{"run", "--gpus", "all", ALPINE, "true"})
session.WaitWithDefaultTimeout()
Expect(session).Should(ExitCleanly())
})
It("podman run cannot access non default devices", func() {
session := podmanTest.Podman([]string{"run", "-v /dev:/dev-host", ALPINE, "head", "-1", "/dev-host/kmsg"})
session.WaitWithDefaultTimeout()