Skip to content
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

Update gpu.md: add example command for the Nvidia driver is installed by the gpu-operator #3441

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,7 @@ echo "/run/nvidia/driver/usr/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/nvidia.co
ldconfig
```

And then, the `nerdctl run --gpus` can run successfully.
And then, the `nerdctl run --gpus` can run successfully. eg:
```
nerdctl run -it --rm --runtime=/usr/local/nvidia/toolkit/nvidia-container-runtime --gpus all nvidia/cuda:12.3.1-base-ubuntu20.04 nvidia-smi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--runtime should not be needed on the "typical" setup?
(When nvidia-container-runtime is present in $PATH?)

Copy link
Author

@zgfh zgfh Sep 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have try ,this not work with no param runtime
it can run,but not mount nvidia-smi
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ktock Can you confirm? Is this a bug?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zgfh Can you confirm nvidia-container-cli is in PATH?

```