GTX1080+Ubuntu14.04+matconvnet-1.0-beta23

时间:2022-01-24 09:17:44
(1). 下载gcc/g++ 4.7.x
$ sudo apt-get install -y gcc-4.7
$ sudo apt-get install -y g++-4.7
(2). 链接gcc/g++实现降级
$ cd /usr/bin
$ sudo rm gcc
$ sudo ln -s gcc-4.7 gcc
$ sudo rm g++
$ sudo ln -s g++-4.7 g++
(3).MatConvNet编译
cd <MatConvNet>
addpath matlab
vl_compilenn
vl_compilenn('verbose', 1)
vl_compilenn('enableGpu', true, ...
               'cudaRoot', '/usr/local/cuda-8.0', ...
               'cudaMethod', 'nvcc', ...
               'enableCudnn', true, ...
               'cudnnRoot', 'local/cuda') ;
(4)start matconvnet
run <MatConvNet>/matlab/vl_setupnn
vl_testnn
vl_testnn('gpu', true)