我是靠谱客的博主 干净铅笔,这篇文章主要介绍ubuntu18.04 + torch7 + cuda 8.0 + cudnn7torch7,现在分享给大家,希望可以做个参考。

参考:https://www.jianshu.com/p/9e706ca6f5e3

https://blog.csdn.net/zouyu1746430162/article/details/79510773

 

torch7

http://torch.ch/docs/getting-started.html#_

官方自带脚本:

复制代码
1
2
3
4
git clone https://github.com/torch/distro.git ~/torch --recursive cd ~/torch; bash install-deps; ./install

bash install-deps:报错 将install-deps文件中的  将那个python-*-*的替换为     software-properties-common

success.

下面安装cuda8.0。使用的是deb包安装。

 

cudnn7对应于cuda8.0版本

###按照教程

复制代码
1
2
3
luarocks install cutorch luarocks install cunn

安装cutorch    gcc版本不能大于5.0  要降级    https://blog.csdn.net/qq_33160790/article/details/80464473

 

复制代码
1
2
3
4
git clone https://github.com/soumith/cudnn.torch -b R7 cd cudnn.torch luarocks make

R7代表 cudnn7版本 要对。

最后

以上就是干净铅笔最近收集整理的关于ubuntu18.04 + torch7 + cuda 8.0 + cudnn7torch7的全部内容,更多相关ubuntu18.04内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(114)

评论列表共有 0 条评论

立即
投稿
返回
顶部