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

can we use --gpu in docker directly ie without Nvidia-docker? #30

Closed
stnava opened this issue Sep 28, 2020 · 3 comments
Closed

can we use --gpu in docker directly ie without Nvidia-docker? #30

stnava opened this issue Sep 28, 2020 · 3 comments

Comments

@stnava
Copy link

stnava commented Sep 28, 2020

is nvidia-docker is necessary anymore. With 19.03 and older, can you do (after installing nvidia-docker-cli and nvidia-docker-toolkit) pass --gpus= parameter to docker ?

@cboettig
Copy link
Member

Correct. I regularly run the rocker/ml images with standard docker run and the --gpus= flag instead.

(Though as you may know docker-compose no longer works with gpu option)

@stnava
Copy link
Author

stnava commented Sep 28, 2020

followed these steps : NVIDIA/nvidia-docker#1243

and it worked.

thank you!

@stnava stnava closed this as completed Sep 28, 2020
@stnava
Copy link
Author

stnava commented Sep 28, 2020

also needed

export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

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