caffe与cudnn 不匹配的情况下怎么处理

CXX/LD -o .build_release/tools/convert_imageset.bin
CXX/LD -o .build_release/tools/caffe.bin
CXX/LD -o .build_release/tools/remove_files_from_lmdb.bin
CXX/LD -o .build_release/tools/extract_features.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
CXX/LD -o .build_release/tools/compute_image_mean_from_txt.bin
CXX/LD -o .build_release/tools/convert_typed_lmdb_to_nontyped_lmdb.bin
/usr/bin/ld: warning: libboost_system.so.1.55.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.55.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcudnn.so.5, needed by .build_release/lib/libcaffe.so, may conflict with libcudnn.so.7.0
/usr/bin/ld: warning: libboost_python.so.1.55.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
.build_release/lib/libcaffe.so: undefined reference to `caffe::cudnn::dataType<double>::zero'
.build_release/lib/libcaffe.so: undefined reference to `caffe::cudnn::dataType<double>::one'
.build_release/lib/libcaffe.so: undefined reference to `caffe::cudnn::dataType<float>::zero'
.build_release/lib/libcaffe.so: undefined reference to `caffe::cudnn::dataType<float>::one'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/convert_imageset.bin] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: warning: libboost_system.so.1.55.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.55.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcudnn.so.5, needed by .build_release/lib/libcaffe.so, may conflict with libcudnn.so.7.0
/usr/bin/ld: warning: libboost_python.so.1.55.0, needed by .build_release/lib/libcaffe.so, not found (try using -rpath or -rpath-link)
.build_release/lib/libcaffe.so: undefined reference to `caffe::cudnn::dataType<double>::zero'
.build_release/lib/libcaffe.so: undefined reference to `caffe::cudnn::dataType<double>::one'/
.build_releaseusr//bin/ld:lib warning: /libboost_system.so.1.55.0, libcaffe.soneeded by: .build_release /lib/undefinedlibcaffe.so, not  found (tryreference using  -rpath orto -rpath -link)
`/usr/bin/caffe:ld: warning:: libboost_thread.so.1.55.0cudnn, needed: by .:build_release/lib/dataTypelibcaffe.so, not< found (floattry using >-rpath or: -rpath:-link)
zero/usr/bin'/ld:
 warning: libcudnn.so.5.build_release, needed/ by lib.build_release/lib//libcaffe.so, libcaffe.somay conflict: with libcudnn.so.7.0 
/usr/undefinedbin/ld:  warning: referencelibboost_python.so.1.55.0,  needed by to.build_release/ lib/libcaffe.so, `not found (caffetry using :-rpath or -rpath:-link)
cudnn.build_release/lib:/libcaffe.so:: undefined referencedataType to `<caffe::cudnn:float>:dataType<double:>::zero:'
.onebuild_release/lib/'libcaffe.so: undefined
 reference to `caffe::cudnn::dataType<double>::one'

.build_release/lib/libcaffe.so: undefined reference to `caffe::cudn


百度到的结果是:

http://blog.csdn.net/u011037837/article/details/53405172

出现这种问题一般都是因为因为cudnn版本与caffe版本不匹配 这个要怎么改?

找了一个小伙伴在她的电脑上试一试 看看能编译过不。

在zyt 的电脑是可以编译过的。可能是我的cudnn 的版本的问题。

去掉了cudnn 加速在泰坦 black 上是可以编译过的。

20170524日更新

今天在tx1 上遇到错误:

百度到的问题依然是:cudnn版本与caffe版本不匹配
解决方法:

当当当 把caffe里面的所有与cudnn相关的.h 和.cpp 替换成能用cudnn 编译过的caffe

需要替换的cudnn有:

第一部分:

caffe-my/include/caffe/util 下面的cudnn.hpp

对应的cpp 文件为:caffe-my/src/caffe/util 下面的cudnn.cpp

第二部分:caffe-my/include/caffe/layers下面


同样的对应的cpp 文件为:


所有的都要替换掉。

anyway 希望对大家有帮助。。caffe 在make all 的过程中,暂时没有错误。。。



  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值