天天看點

win7下安裝theano和cuda

安裝環境

Win7 64位 GeForce GT 630

win7下安裝theano和cuda

** Python python-2.7.9.msi (32位),安裝好後添加python和pip的環境變量

numpy 安裝好python後直接 pip install numpy

scipy pip install numpy

matplotlib pip install matplotlib

** VS2012安裝

安裝時可以隻安裝C++類庫 下載下傳位址 http://pan.baidu.com/s/1qY7pn20

** minGW 安裝,直接點選,照提示安裝,安裝好後添加環境變量 下載下傳位址http://pan.baidu.com/s/1jH7lm4Y

C:\MinGW\bin; C:\MinGW\mingw32\lib

** cuda安裝

選擇的是cuda_6.5.14_windows_general_64.exe 下載下傳位址http://pan.baidu.com/s/1dE5t5wl

**安裝好後,驗證

cmd下輸入nvcc –V

進入C:\Program Files\NVIDIA Corporation\Installer2\CUDASamples_6.5\bin\win64\Release

運作測試例子

** Theano安裝

Pip install theano

** 配置檔案,在C:\Users\Administrator 建立 .theanorc.txt 添加

[gcc]

cxxflags=-IC:\MinGW\include

[nvcc]

flags=-LD:\soft\python\libs

compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin

[global]

device=gpu

floatX=float32

win7下安裝theano和cuda

運作deeplearning 例子

python logistic_sgd.py 30.6s

win7下安裝theano和cuda

python convolutional_mlp.py 這個比較耗時需要3個小時

win7下安裝theano和cuda
win7下安裝theano和cuda