Install Anaconda and python

 

1. cuda-8.0

download cuda_8.0.61_375.26_linux.run

./cuda_8.0.61_375.26_linux.run

 

2.cudnnv5.1 for cuda-8.0

download cudnn-8.0-linux-x64-v5.1.tgz

tar xvzf cudnn-8.0-linux-x64-v5.1.tgz

cp cuda/include/cudnn.h cuda-8.0/include

cp cuda/lib64/libcudnn* cuda-8.0/lib64

 

3. set path

vi .bashrc

----- add to end

export CUDA_HOME=[path for cuda-8.0]

export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${CUDA_HOME}/extras/CUPTI/lib64

-----

source .bashrc

nvcc --version

 

4.tensorflow

conda create -n tensorflow

source activate tensorflow

(tensorflow)$ pip install --ignore-installed --upgrade TF_PYTHON_URL

TF_PYTHON_URL for python2.7: https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.0-cp27-none-linux_x86_64.whl

 

5. set gpu

http://www.acceleware.com/blog/cudavisibledevices-masking-gpus

export CUDA_VISIBLE_DEVICES=3

posted @ 2017-02-16 11:42 陆草纯 阅读(1504) 评论(0) 推荐(0) 编辑
摘要: 1、安装easy_install http://blog.csdn.net/A8572785/article/details/10945237 2、与ipython兼容的ipdb命令 pip install https://pypi.python.org/packages/source/i/ipdb 阅读全文
posted @ 2016-07-14 19:40 陆草纯 阅读(404) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/niuwei22007/article/details/47684673 http://blog.csdn.net/m624197265/article/details/45700619 http://blog.sina.com.cn/s/blog_9908 阅读全文
posted @ 2016-04-01 21:42 陆草纯 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Integer to English Words Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. For ex 阅读全文
posted @ 2016-03-25 14:28 陆草纯 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 1、选择日期备份为xml格式 2、修改后缀为html格式 3、用Adobe Acrobat生成pdf 阅读全文
posted @ 2016-03-24 20:54 陆草纯 阅读(431) 评论(0) 推荐(1) 编辑
摘要: Counting Bits Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary repres 阅读全文
posted @ 2016-03-24 19:38 陆草纯 阅读(1906) 评论(0) 推荐(0) 编辑
摘要: Missing NumberGiven an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=... 阅读全文
posted @ 2015-08-25 22:20 陆草纯 阅读(1791) 评论(0) 推荐(0) 编辑
摘要: Ugly Number IIWrite a program to find then-th ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For example,1, 2,... 阅读全文
posted @ 2015-08-22 12:13 陆草纯 阅读(542) 评论(0) 推荐(0) 编辑
摘要: Add DigitsGiven a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is... 阅读全文
posted @ 2015-08-22 11:52 陆草纯 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: Binary Tree PathsGiven a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-lea... 阅读全文
posted @ 2015-08-22 11:31 陆草纯 阅读(2235) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示