import tensorflow report undefined symbol cudnnGetRNNParamsSize error

ubuntu x64, 14.04

import tensorflow report below error:

undefined symbol cudnnGetRNNParamsSize error

resolve:


1: ***      check your cuda version first  and cd to cuda installation  location , you can use:

--------------------------------------------------------------------------------


i:check cuda version:
cat /usr/local/cuda/version.txt

the install location should be :/usr/local/cuda-8.0


2: ***      check if libcudnn.so.6 as this symbol, use objdump

--------------------------------------------------------------------------------


objdump -TC  libcudnn.so.6, normally you can not find this symbol from this library.


3:***   under ubuntu , i install cuda-7.5 instead. you can do this by :

--------------------------------------------------------------------------------


sudo apt-get install cuda-7-5, this will uninstall cuda-8.0 first and install cuda 7.5 instead. for cuda 7.5 , you can find libcudnn.so under  /usr/lib/x86_64-linux-gnu/.   after this, you will find below error:

tensorflow:undefined symbol: cudnnSetRNNDescriptor_v6

now, please down cudnn-8.0-linux-x64-v6.0.tgz  here:
wget http://developer.download.nvidia.com/compute/redist/cudnn/v6.0/cudnn-8.0-linux-x64-v6.0.tgz

untar this archive to a folder for example named cudav6

copy and replace several files with flowing commands:

rm -f /usr/include/cudnn.h
rm -f /usr/lib/x86_64-linux-gnu/*libcudnn*
rm -f /usr/local/cuda-*/lib64/*libcudnn*

cp -P  /path/to/cudav6/include/cudnn.h /usr/include
cp -P /path/to/cudav6/lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*


after all operations,  you will find  import tensorflow work fine in python script.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值