-
Notifications
You must be signed in to change notification settings - Fork 2k
Feature request: Running nvidia-docker on a system which has Intel (Power Saving Mode) enabled #612
Comments
The "Intel (Power Saving Mode)" you are referring to is not officially supported by NVIDIA and is something OS vendors add to their distribution. Having said that, it doesn't matter for CUDA and you can leverage your GPU inside your container while you're driving your display through the Intel iGPU. |
Dear @3XX0, thanks for your reply. It convinced me that apparently I should be able to get it working... I tried all kinds of things, but I couldn't get it to work. If I use Intel (via "NVIDIA X Server Settings") and run (after a fresh boot):
It will give me a valid output:
But as soon as I run this same command in docker (from the same terminal with the "patched"
It fails with this error:
I'm using the latest version of docker (17.12.0-ce, build c97c6d6) and nvidia-docker2 (2.0.2+docker17.12.0-1) I also tried forcing the GPU to enable:
But that didn't fix accessing my gpu in a container (i.e. I also tried installing bumblebee, but via |
Right, the problem is that the Intel setting messes with the ldcache and nvidia-docker won't be able to find the driver libraries anymore. Try editing |
That seems to have gotten me closer. If I now run
|
Can you enable the debug mode in the configuration file as well and paste the logs here. |
I uncommented
|
I implemented what you need in libnvidia-container. Once nvidia-container-runtime adds support for it, you should be able to leverage it from nvidia-docker. |
@3XX0 Thanks a lot for your efforst! Is there an issue opened at https://github.com/NVIDIA/nvidia-container-runtime already to point out that adding such support is desired? Or should I do that? |
I believe this is fixed in the latest release. You will need to backup your |
+1 |
To expand on what @3XX0 wrote in a comment above, I have fixed this issue by running
and then making sure my
|
1. Issue or feature description
I usually have my computer running in the "Intel (Power Saving Mode)" (from NVIDIA X Server Settings). This means that I use my integrated Intel GPU, rather than my Nvidia GPU by default. Switching requires logging out and in (or simply rebooting), which is annoying when you have a lot of work open.
I understand that dynamic switching is still not supported under Linux (any progress there would be very welcome!), but I figured that especially when using docker, it should be somewhat straightforward to fire up to GPU just for exposing it to your docker container. From a technical point of view, would this be possible (seems much less complicated than transferring the frame buffer which is needed when dynamically switching GPUs as in macOS and Windows)? For me and my colleagues, it would be very valuable to have the GPU accessible (for CUDA/CuDNN, TensorFlow, etc.) via nvidia-docker, without compromising on battery time all the time.
The text was updated successfully, but these errors were encountered: