torch7+ubuntu16.04+cuda8.0+cudnn5+hdf5+matlab2016安装

折腾了好几天,踩了好多坑,终于装好,整理一下,以备后续再用。

参考网址

https://www.cnblogs.com/darkknightzh/p/5668471.html

https://jingyan.baidu.com/article/cbcede077e1ebe02f40b4d1e.html

Deep Learning Frameworks | NVIDIA Developer,Torch supports cuDNN v5 for GPU acceleration.


1、cuda官网下载cuda-repo-ubuntu1604_9.1.85-1_amd64.deb,用sudo apt list |grep cuda(版本);

2、cudnn下载,

cuDNN Archive | NVIDIA Developer,Download cuDNN v5 (May 27, 2016), for CUDA 8.0

LINUX

    cd <installpath>
    export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH

    Add <installpath> to your build and link process by adding -I<installpath> to your compile
    line and -L<installpath> -lcudnn to your link line.

安装过程参考博客https://www.cnblogs.com/darkknightzh/p/5668471.html,
3、hdf5 安装,要安装torch-hdf5,

https://jingyan.baidu.com/article/cbcede077e1ebe02f40b4d1e.html

4、matlab安装 ,
参考网址:http://blog.csdn.net/minione_2016/article/details/53313271,

6、torch7 安装官网


安装一个新软件包:

apt-get install packagename

卸载一个已安装的软件包(保留配置文件):

apt-get remove packagename


猜你喜欢

转载自blog.csdn.net/gloriazhang2013/article/details/79401488