Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Error: Could not load NVML library #74

Closed
stefanseefeld opened this issue Apr 14, 2016 · 6 comments
Closed

Error: Could not load NVML library #74

stefanseefeld opened this issue Apr 14, 2016 · 6 comments

Comments

@stefanseefeld
Copy link

I'm trying to run nvidia-docker on my Fedora 23 laptop.
Both, nvidia-docker as well as nvidia-docker-plugin abort with

Error: Could not load NVML library

(I do have /usr/lib64/nvidia/libnvidia-ml.so which is part of the xorg-x11-drv-nvidia-cuda-358.16-2.fc23.x86_64 package)

Any idea what I'm missing ?

@3XX0
Copy link
Member

3XX0 commented Apr 14, 2016

Can you provide the output of

ldconfig -p | grep nvidia-ml

@stefanseefeld
Copy link
Author

The output is strictly empty.

@3XX0
Copy link
Member

3XX0 commented Apr 14, 2016

That's the problem then :) NVML is not in your ldcache.

If your package installed the appropriate conf file in /etc/ld.so.conf.d, then it's just a matter of doing:

sudo ldconfig

Otherwise either create it:

sudo tee /etc/ld.so.conf.d/nvidia-ml.conf <<< /usr/lib64/nvidia
sudo ldconfig

or set LD_LIBRARY_PATH before running nvidia-docker or nvidia-docker-plugin

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/nvidia

@stefanseefeld
Copy link
Author

Ah ! So it turns out I was missing a "devel" rpm ("xorg-x11-drv-nvidia-devel"). (Perhaps this is a packaging bug, as I believe that ldconfig entry is needed not just for development.)

With that fixed I now get a different error:

When running nohyp nvidia-docker-plugin > /tmp/nvidia-docker.log I see (in that log file)

nvidia-docker-plugin | 2016/04/14 19:50:49 Error: nvml: Not Supported

Is this a version mismatch somewhere ?
And running nvidia-docker run -it nvidia/cuda bash I get

docker: Error response from daemon: create nvidia_driver_358.16: create nvidia_driver_358.16: Error looking up volume plugin nvidia-docker: plugin not found.

Thanks for your help,
Stefan

@3XX0
Copy link
Member

3XX0 commented Apr 15, 2016

This is related to #40, your GPU is not currently supported.
One way to workaround it is to use nvidia-docker volume setup instead of the plugin (see here).

@stefanseefeld
Copy link
Author

Great, that works !
Thanks for your support,
Stefan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants