libcublas.so.9.0: cannot open shared object file while running tensorflow in ubuntu 17.10

前端 未结 1 1359
攒了一身酷
攒了一身酷 2020-12-22 10:50

I have tried cuda 9 but tensorflow doesn\'t seem to work. Now, I installed cuda 8, set environment variables and other bunch of stuff and still this error persists. Help me

相关标签:
1条回答
  • 2020-12-22 11:27

    Find libcublas.so.9.0 in your system, probably under /usr/local/cuda-9.0/lib64. Now add to your ~/.bashrc file:

    export LD_LIBRARY_PATH=/path/to/cuda/lib64
    

    You should then move on from that error and see an error that it can't find libcudnn.so. Make sure you've installed the CUDNN library and follow the same procedure for libcudnn.so (the actual name of libcudnn is something like libcudnn.so.7 depending on your version).

    The key here is setting LD_LIBRARY_PATH correctly.

    If you continue to have problems make sure you restart your terminal session and type echo $LD_LIBRARY_PATH to validate that all setting changes have been applied correctly.

    0 讨论(0)
提交回复
热议问题