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

CUDA Version error in container. #10

Closed
freeliuzc opened this issue Sep 15, 2022 · 2 comments
Closed

CUDA Version error in container. #10

freeliuzc opened this issue Sep 15, 2022 · 2 comments

Comments

@freeliuzc
Copy link

Hi, I build docker images by your dockerfile.
Start with command docker run --gpus=all --network=host --rm --name test --privileged --shm-size 32G -it <docker_image_name> bash
However, with nvidia-smi in container, CUDA Version will be Error. Do you have same problem?
image
Other gpu images does not have problem.

@freeliuzc
Copy link
Author

You can pull it by registry.baidubce.com/public-lzc/cricket:cuda11.1

@freeliuzc
Copy link
Author

freeliuzc commented Sep 16, 2022

Hi, the problem is the ln command
ln -s /usr/local/cuda/targets/x86_64-linux/lib/stubs/libcuda.so /usr/local/cuda/targets/x86_64-linux/lib/stubs/libcuda.so.1
If use a nvidia image like nvidia/cuda:11.1.1-cudnn8-devel-centos8 as base image and dont ln -s libcuda. The problem will disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant