3

I have installed Cuda Toolkit 9.0 and cuDNN v7.0 according to instrucitons on https://www.tensorflow.org/install/install_linux (and nvidia site) instruction. However, when I try to run some script using tensorflow it says it cannot find it

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

even though my LD_LIBRARY_PATH is set correctly: echo $LD_LIBRARY_PATH /usr/local/cuda-9.0/lib64:/usr/local/cuda-9.0/extras/CUPTI/lib64

is there something I'm missing?

talonmies
  • 70,661
  • 34
  • 192
  • 269

1 Answers1

1

If you've installed cuda with the runfile installation method you have to set also the PATH variable according to the Nvidia documentation. I would recommend adding export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}} and export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}(64-bit) or export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}(32-bit) to your .bashrc (if you use bash).

majkel.mk
  • 428
  • 4
  • 13
Baschdl
  • 375
  • 3
  • 15