Caffe bug fixing List

1 篇文章 0 订阅
1 篇文章 0 订阅

These days I am focusing on compling caffe in Ubuntu14.04

And I met some problems and fixed them in the end.

Now is the list about problems:

here is 2 parts of the setup-files and I followed them.

http://download.csdn.net/detail/znmax1217/9475850

http://download.csdn.net/detail/znmax1217/9475852

1. about add PATH problems

it said like this:

$ sudo gedit /etc/bash.bashrc  
在结尾处添加内容:
export PATH=/usr/local/cuda-7.5/bin:$PATH 
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:${LD_LIBRARY_PATH}

but fails when we check PATH like this:

echo $PATH

so we edit the file without "export" at the end of "bash.bashrc"

PATH=/usr/local/cuda-7.5/bin:$PATH 
LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:${LD_LIBRARY_PATH}
then we update, re-edit the file and delete the last 2 lines:

$ source /etc/bash.bashrc  

2. setup samples:

We need to setup the samples in /usr/local/cuda/

actually just find the .sh file:

$ cuda-install-samples-7.5.sh <dir> 

3. facing the problem about gpu-version

how to check if gpu fit:

cd /usr/local/cuda/samples/bin/x86_64/linx/release
sudo ./deviceQuery
sudo dpkg --list | grep nvidia-*

if it said "FAILED" with "is insuffiencient"

then maybe the cuda version is not fit nvidia version:

cuda 6.5 ->nvidia-340

cuda 7.5 ->nvidia-352

so coded like this:

sudo apt-get --purge remove nvidia-*
and then we find nvidia-352 in "software & update"


4. "Unknown Mex ..." ... ERROR 255 ... "-o"

when we :

sudo make matcaffe -j8

so 2 steps:

A. check gcc version & g++

gcc -v
if it is 4.8.* or even better, then we download 4.7 version and overlap them


B. still cannot

then

re-edit Makefile like this:

http://download.csdn.net/detail/znmax1217/9475853


change CXXLIBS="\$$CXXLIBS $(LDFLAGS)" -o $@
to CXXLIBS="\$$CXXLIBS $(STATIC_NAME) $(LDFLAGS)" -output $@



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值