-
Notifications
You must be signed in to change notification settings - Fork 2k
building images with nvidia-docker #595
Comments
I've followed the instructions [https://github.com/nvidia/nvidia-container-runtime#docker-engine-setup] to register the runtime but still cannot set runtime default to 'nvidia'. I stop docker.service, and run 'sudo dockerd --default-runtime=nvidia &' which sets my runtime default to 'nvidia' but when I try to restart the service, it fails. Please help! |
Do you need GPU support during With version 1.0, |
Sounds good. I’ll give it a try. Primarily, I thought nvidia-docker provided gpu passthru support for building Caffe with GPU, which I do see on the build logs. |
You don't need to have a GPU machine to build a GPU project. The compiler ( |
Actually I think it's really important the have runtime support for docker build. The reason is for testing: |
This is really quite important. Many tools require the presence of hardware to be configured correctly. |
Set the default runtime to NVIDIA |
I don't have access to |
I ran into this same issue trying to compile something that uses tensorflow in a xenial-based image. tensorflow was complaining:
I was able to get my
Related Links: |
Another solution if your |
mark! |
@z13974509906 the recommended path is to build CUDA code during You wouldn't need libcuda.so in that case and can use the stubs at build time. |
To build using the stubs, you need to make the stubs path known to the linker. One option is to add the path to the LIBRARY_PATH environmental variable. (LD_LIBRARY_PATH is for runtime linking, whereas LIBRARY_PATH is used for compile time linking). Example:
|
This solved my problem where |
You don't need to restart the daemon, |
1. Building images with nvidia-docker
2. In the past, I am able to just call nvidia-docker build. With version 2 requiring '--runtime' flag, Docker does not recognize it (although it works just fine as 'docker run --runtime'). I have not seen anything in the documentation regarding building with nvidia-docker version 2. Please advise.
The text was updated successfully, but these errors were encountered: