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

Running nvidia-smi crashes with WSL with gpu support #10524

Closed
ashaw596 opened this issue Mar 3, 2021 · 5 comments
Closed

Running nvidia-smi crashes with WSL with gpu support #10524

ashaw596 opened this issue Mar 3, 2021 · 5 comments

Comments

@ashaw596
Copy link

ashaw596 commented Mar 3, 2021

Running docker run --rm -e NVIDIA_VISIBLE_DEVICES=all nvidia/cuda:11.0-base nvidia-smi causes the error

docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "nvidia-smi": executable file not found in $PATH: unknown.

Other nvidia container calls work correctly

@stephen-turner
Copy link
Contributor

Have you followed all the instructions at https://docs.docker.com/docker-for-windows/wsl/#gpu-support including being on the latest Insiders build of Windows?

@ashaw596
Copy link
Author

ashaw596 commented Mar 3, 2021

I have followed all those instructions. In nvidia's website it says.

nvidia-smi is now supported but in order to use it, please copy it to /usr/bin and set appropriate permissions with the below commands:
cp /usr/lib/wsl/lib/nvidia-smi /usr/bin/nvidia-smi
chmod ogu+x /usr/bin/nvidia-smi

@stephen-turner
Copy link
Contributor

I wonder if it's related to this Nvidia bug: NVIDIA/nvidia-container-toolkit#148

@docker-robott
Copy link
Collaborator

Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants