pspnet安装过程中问题及解决方法

1.安装CUDA, cudnn, opencv, matlab , caffe

2.配置pspnet, makefile.config, cudnn问题, libcaffe问题(添加opencv链接库)

4. 找不到mat系列文件

…/lib/libcaffe.so.1.0.0-rc3: undefined reference to Mat_VarCreate’ …/lib/libcaffe.so.1.0.0-rc3: undefined reference toMat_CreateVer’
…/lib/libcaffe.so.1.0.0-rc3: undefined reference to Mat_VarWrite’ …/lib/libcaffe.so.1.0.0-rc3: undefined reference toMat_VarFree’
…/lib/libcaffe.so.1.0.0-rc3: undefined reference to Mat_VarReadInfo’ …/lib/libcaffe.so.1.0.0-rc3: undefined reference toMat_Close’
…/lib/libcaffe.so.1.0.0-rc3: undefined reference to Mat_VarReadDataLinear’ …/lib/libcaffe.so.1.0.0-rc3: undefined reference toMat_Open’

解决方法:https://github.com/TheLegendAli/DeepLab-Context2/issues/1

具体做法:

(1)添加以下代码至cmake/Dependencies.cmake文件中:

find_package(MATIO REQUIRED)
include_directories(${MATIO_INCLUDE_DIR})
list(APPEND Caffe_LINKER_LIBS ${MATIO_LIBRARIES})

(2)并将findmatio.cmake文件拷贝至文件夹cmake/Modules/

findmatio文件下载路径:https://github.com/TheLegendAli/DeepLab-Context/files/453735/FindMATIO.cmake.zip

pspnet tensorflow版本需要出现问题:
E tensorflow/stream_executor/cuda/cuda_dnn.cc:359] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERRORE tensorflow/stream_executor/cuda/cuda_dnn.cc:326] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM2018-03-12 10:55:56.078991: F tensorflow/core/kernels/conv_ops.cc:671] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms) Aborted (core dumped)

解决方法:
sudo rm -f ~/.nv/

./include/caffe/common.cuh(9): error: function “atomicAdd(double *, double)” has already been defined

1 error detected in the compilation of “/tmp/tmpxft_000038e6_00000000-17_interp.compute_61.cpp1.ii”.
Makefile:589: recipe for target ‘.build_release/cuda/src/caffe/util/interp.o’ failed
make: *** [.build_release/cuda/src/caffe/util/interp.o] Error 1
make: *** 正在等待未完成的任务…
修改common.h文件内容,cuda版本问题

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值