Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants