-
Notifications
You must be signed in to change notification settings - Fork 2k
missing libcuda.so #508
Comments
If it was from
No, this library is only for build time, not for runtime. You don't want to pick the stub at runtime. But also be aware that TensorFlow needs to do a hack with the stubs because of Bazel, see this discussion: The current Dockerfile: |
Maybe that is why TF was looking for libcuda.so when I was trying to run it (I had libcuda.so in LD_LIBRARY_PATH and maybe even in PATH). I will build my docker image over night (UTC+1) and see does it work for me. |
Everything works like a charm. Thank you. |
You're welcome! |
I am trying to build tensorflow
v1.4.0-rc1
on top ofnvidia/cuda:9.0-cuddn7-devel-ubuntu16.04
using docker-ce17.09
andnvidia-docker2
. After the build tensorflow started to complain that it is missinglibcuda.so
. I found it in/usr/local/cuda-9.0/targets/x86_64-linux/lib/stubs/
and I added it to LD_LIBRARY_PATH but it was still missing. Then I started to investigate the build.I think that
/usr/local/cuda-9.0/targets/x86_64-linux/lib/stubs/
should be added to/etc/ld.so.conf.d/nvidia.conf
as many people (looking at previous issues) had problems with finding/linkinglibcuda.so
. I am not sure though why it only foundlibcuda.so.1
and notlibcuda.so
, but I am not expert in compiling code and linking libraries. :)So during the build I run a couple of commands to debug the problem.
and here is the outcome:
The text was updated successfully, but these errors were encountered: