前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ubuntu16.04 cuda9.0 cudnn Tensorflow GPU 1.10.0

ubuntu16.04 cuda9.0 cudnn Tensorflow GPU 1.10.0

作者头像
用户1148525
发布2019-05-26 11:48:56
5360
发布2019-05-26 11:48:56
举报

Ubuntu14.04升级到Ubuntu16.04

查看目前版本 lsb_release -a

apt-get update && apt-get dist-upgrade reboot do-release-upgrade

lsb_release -a

系统备份 https://blog.csdn.net/qq_35523593/article/details/78545530

tar -cvpzf //media/zhangjun/72CCA22DCCA1EB93/Recovery/ubuntu_backup@date +%Y-%m+%d.tar.gz --exclude=/proc --exclude=/tmp --exclude=/boot --exclude=/home --exclude=/lost+found --exclude=/media --exclude=/mnt --exclude=/run /

代码语言:javascript
复制
直接操作
操作前切换到root,并且换到/根目录。

tar -xvpzf /media/Disk/myDisk/ubuntu_boot_backup@2016-6-6.tar.gz -C /

代码语言:javascript
复制
1

LiveCD
操作之前请确保你已经有一个制作好的ubuntu U盘启动盘。进入系统后,打开终端还是先切换到root。

mkdir /mnt/sys mount /dev/sdaX /mnt/sys tar -xvpzf /media/myDisk/ubuntu_boot_backup@2016-6-6.tar.gz -C /mnt/sys

11

Installation Instructions:

sudo dpkg -i cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64.deb sudo apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub # 这句命令有提示 sudo apt-get update sudo apt-get install cuda

deb安装包会安装CUDA Toolkit和Driver Package,不需要自己安装驱动 安装时好像也会自动设置环境变量

cudnn 安装: 2.3.1. Installing from a Tar File 1. Navigate to your directory containing the cuDNN Tar file. 2. Unzip the cuDNN package. $ tar -xzvf cudnn-9.0-linux-x64-v7.tgz 3. Copy the following files into the CUDA Toolkit directory. $ sudo cp cuda/include/cudnn.h /usr/local/cuda/include $ sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 $ sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*

GTX1080Ti LetNet-5 CPU GPU cuDNN7 时间对比

CPU模式: Makefile.config

CPU_ONLY:=1 前取消 # make clean make -j

./build/tools/caffe.bin time -model examples/mnist/lenet_train_test.prototxt Testing for 50 iterations

Total Time: 2906 ms.

GPU 模式:

Makefile.config

#CPU_ONLY:=1 make clean make -j

./build/tools/caffe.bin time -model examples/mnist/lenet_train_test.prototxt -gpu 0

Total Time: 370.198 ms.

cuDNN 模式:

Makefile.config

USE_CUDNN:=1

make clean make -j

./build/tools/caffe.bin time -model examples/mnist/lenet_train_test.prototxt -gpu 0

Testing for 50 iterations. Total Time: 68.2353 ms.

pip install tensorflow-gpu==1.10.0

安装在 python 路径下面

pip install tensorflow # Python 2.7; CPU support (no GPU support) pip3 install tensorflow # Python 3.n; CPU support (no GPU support) pip install tensorflow-gpu # Python 2.7; GPU support pip3 install tensorflow-gpu # Python 3.n; GPU support

https://pypi.org/project/tensorflow/1.10.0/#files

python2.7 python 3.5 python 3.6

Tensorflow Object Detection API https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md

https://github.com/tensorflow/models 下载不了

Tensorflow detection model zoo

https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md

打不开 https://www.tensorflow.org/tutorials/ 怎么办? 用下面的网址!

https://tensorflow.google.cn/tutorials/

11

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年11月19日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档