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

could I choose cuda version in docker? #243

Open
mintuos opened this issue Dec 19, 2023 · 1 comment
Open

could I choose cuda version in docker? #243

mintuos opened this issue Dec 19, 2023 · 1 comment

Comments

@mintuos
Copy link

mintuos commented Dec 19, 2023

Issue summary

I download gnina docker and run it by

docker run --gpus all -it gnina/gnina:latest

but there was a error

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #0:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: requirement error: unsatisfied condition: cuda>=11.7, please update your driver to a newer version, or use an earlier cuda container: unknown.
ERRO[0000] error waiting for container: context canceled 

Steps to reproduce

I install a cuda12 for one user
and set bashrc with

 12 # User specific aliases and functions
 13 export CUDA_HOME=/home/jf/Programs/cuda12
 14 export PATH=$CUDA_HOME/bin:$PATH
 15 export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH

now the

which nvcc
~/Programs/cuda12/bin/nvcc

out correct
and nvidia-smi still out cuda11.0
so I wound if I can choice what cuda verision to use,
or If I can use another way to activate gpu support in docker

Your system configuration

Operating system:centos7
Compiler:
CUDA version (if applicable): cuda11.0
CUDNN version (if applicable):
Python version:

@dkoes
Copy link
Contributor

dkoes commented Dec 19, 2023

The drivers in the container need to be compatible with the drivers on the host. You may have to build a container that is compatible with your environment. Example docker files here: https://github.com/gnina/gnina/tree/master/docker

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

2 participants