libcudart.so.7.5: cannot open shared object file
I am working from: https://github.com/tensorflow/models/tree/master/inception
However, I cannot seem to get past the the 'Getting Started' phase: after running: bazel-bin/inception/download_and_preprocess_imagenet "${DATA_DIR}" (download/ formatting will run for a few hours, ) but I inevitably always get the: 'libcudart.so.7.5: cannot open shared object file' error
I built Tensorflow from source & installed as a pip package (w/ GPU support) as per: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md
Error:
Finished processing 544546 XML files.
Skipped 0 XML files not in ImageNet Challenge.
Skipped 0 bounding boxes not in ImageNet Challenge.
Wrote 615299 bounding boxes from 544546 annotated images.
Finished.
Finished downloading and preprocessing the ImageNet data.
Traceback (most recent call last):
File "/home/julialintern/.cache/bazel/_bazel_julialintern/c867a06834550f25e5a24e0c52adc66d/inception/bazel-out/local-fastbuild/bin/inception/build_imagenet_data.runfiles/inception/data/build_imagenet_data.py", line 97, in
I hope you can help, I've been trying to resolve this for 2 weeks now!
Please be careful when you run command /.configure to set cuda and cudnn. As for me these two in different directories, I paid much attention of the different paths, but without any benefits. I chosed default paths as recommended, and solved it.
also its possible you have not set the right paths. export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH helped me out
Thanks for your response! I've set and reset my paths multiple times..
At the moment they are as follows (in bashrc)
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64" export CUDA_HOME=/usr/local/cuda
when I run : echo $LD_LIBRARY_PATH
/usr/local/cuda/lib64/::/usr/local/cuda/lib64
I have set up the ./configure doc as follows: Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python Do you wish to build TensorFlow with GPU support? [y/N] y GPU support will be enabled for TensorFlow
Please specify which gcc nvcc should use as the host compiler. [Default is /usr/bin/gcc]: /usr/bin/gcc-4.9
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 7.5
Please specify the location where CUDA 7.5 toolkit is installed. Refer to README.md for more details. [default is: /usr/local/cuda]: /usr/local/cuda
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 4.0.7
Please specify the location where the cuDNN 4.0.7 library is installed. Refer to README.md for more details. [default is: /usr/local/cuda]: /usr/local/cuda/lib64
Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: "3.5,5.2"]: 3.0
I've tried everything I can think of. At this point, I am running bazel-bin/inception/download_and_preprocess_imagenet "${DATA_DIR}" for like 18 hours, and I inevitably get this error ..
Any help would be greatly appreciated!
Personally, I would try not specifying all of the versions while running ./configure. So, for example, with the Cuda SDK version, just hit enter instead of entering 7.5. 4.0.7, /usr/local/cuda/lib64. I have a feeling that last one is the issue, since default is /usr/local/cuda (note that it doesn't have lib64 at the end). Good luck!
Thanks for feedback orionr! I tried using all defaults for ./configure, but I'm still getting the exact same error. ¯_(ツ)_/¯
Any other thoughts ?
@julialintern: Are you trying at recent master, specifically after #2504?
@girving : Sorry for the delay here. I ended up using @orionr recommendation along with adding: export PATH=$PATH:/usr/local/cuda/bin to .bashrc. This ended up working for me! Many thanks all!
@julialintern Thanks!