关键词:
【中文标题】theano 安装 (windows 64bit python 2)【英文标题】:theano installation (windows 64bit python 2) 【发布时间】:2015-05-07 11:34:07 【问题描述】:我开始安装 theano。
我的电脑规格: - 操作系统:Windows 7 64 位 - 显卡:NVIDIA Geforce GT 630 - CPU : AMD FX-8120
我通过 deeplearning.net 的安装指南安装了 theano。 (http://deeplearning.net/software/theano/install_windows.html#configure-theano-for-gpu-use)
我成功完成了下的安装过程。
Visual Studio 2010 -> Windows 软件开发工具包版本 7.1 -> CUDA -> Microsoft Visual C++ Complier for Python 2.7(添加头文件)-> TDM GCC -> WinPython-64bit-2.7.9.4 -> env.bat -> Theano 设置
当我创建一个测试文件(下)并测试它时,它成功执行。
-------测试文件-----------------------------------
import numpy as np
import time
import theano
A = np.random.rand(1000,10000).astype(theano.config.floatX)
B = np.random.rand(10000,1000).astype(theano.config.floatX)
np_start = time.time()
AB = A.dot(B)
np_end = time.time()
X,Y = theano.tensor.matrices('XY')
mf = theano.function([X,Y],X.dot(Y))
t_start = time.time()
tAB = mf(A,B)
t_end = time.time()
print "NP time: %f[s], theano time: %f[s] (times should be close when run on CPU!)" %(np_end-np_start, t_end-t_start)
print "Result difference: %f" % (np.abs(AB-tAB).max(), )
但是当我添加 .theanorc.txt ---.theanorc.txt--------------------------------
[global]
device = gpu
floatX = float32
[nvcc]
flags = --use-local-env --cl-version=2008
它给了我这样的错误(下)
https://www.dropbox.com/s/gjspcpaz4hkeep8/11.PNG?dl=0
我对 CUDA-devicequery 和 nvidia-smi.exe 没有任何问题
--------------设备查询--------------------- -----
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v7.0\1_Utilities\deviceQuery\../../bin/win64/Debug/deviceQuery.exe Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "GeForce GT 630"
CUDA Driver Version / Runtime Version 7.0 / 7.0
CUDA Capability Major/Minor version number: 2.1
Total amount of global memory: 512 MBytes (536870912 bytes)
( 2) Multiprocessors, ( 48) CUDA Cores/MP: 96 CUDA Cores
GPU Max Clock rate: 1620 MHz (1.62 GHz)
Memory Clock rate: 1600 Mhz
Memory Bus Width: 128-bit
L2 Cache Size: 131072 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65535),
3D=(2048, 2048, 2048)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 32768
Warp size: 32
Maximum number of threads per multiprocessor: 1536
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (65535, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
CUDA Device Driver Mode (TCC or WDDM): WDDM (Windows Display Driver Model)
Device supports Unified Addressing (UVA): Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 7.0, CUDA Runtime Version = 7.0, NumDevs = 1, Device0 = GeForce GT 630
Result = PASS
--------------nvidia-smi.exe------ ---------
Thu May 07 20:21:50 2015
+------------------------------------------------------+
| NVIDIA-SMI 347.62 Driver Version: 347.62 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GT 630 WDDM | 0000:01:00.0 N/A | N/A |
| 50% 31C P12 N/A / N/A | 476MiB / 511MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 C Not Supported |
+-----------------------------------------------------------------------------+
请帮帮我..
【问题讨论】:
我将文件 ".theanorc.txt" 更改为 ".theanorc" 。谢谢你 。但它仍然有一个错误“没有检测到CUDA设备”。 【参考方案1】:您应该使用“.theanorc”文件,而不是“.theanorc.txt”。
您也可以在 theano-users 群中写下您的问题:https://groups.google.com/forum/#!forum/theano-users
下一个 Winpython 版本将包含 theano+mingwpy,因此它可能会降低设置的复杂性。
【讨论】:
你的意思是“.theanorc”吗?它没有用....我只是将“.theanorc.txt”文件放在winpython/setting文件夹中... 实际上,Theano 官方文档声明您可以使用“.theanorc”或“.theanorc.txt”,它声称是“让 Windows 用户的生活更轻松”deeplearning.net/software/theano/library/config.html跨度>如何在 Windows 7 64 位上使用 theano 设置 cuDnn
】如何在Windows764位上使用theano设置cuDnn【英文标题】:howtosetupcuDnnwiththeanoonWindows764bit【发布时间】:2016-07-1420:51:33【问题描述】:我已经在我的机器上安装了Theano框架并启用了CUDA,但是当我在我的python控制台中“导入theano”时... 查看详情
windows安装theano
...nts.html网站,然后就想要运行试试,然后就要安装theano。折腾了好久才发现怎么容易安装成功。我的电脑配置为win732bit1,下载Anaconda2-4.3.0-Windows-x86.exe(fo 查看详情
windows安装theano
...nts.html网站,然后就想要运行试试,然后就要安装theano。折腾了好久才发现怎么容易安装成功。我的电脑配置为win732bit1,下载Anaconda2-4.3.0-Windows-x86.exe(for32bit) 网址https://www.continuum.io/downloads2,使用... 查看详情
python学习笔记windows下安装theano
...实验室的电脑还是我的笔记本,只要是windows下,theano.test()都是不通过的。虽然能使用一些theano中的函数,但是我感觉很不好。所以还是转Ubuntu了……不要在这种地方瞎折腾了。—————————————————... 查看详情
win764bit安装theano
安装theano,首先安装anconda,上个帖子有介绍,这里不再重复1.在ancondaprompt中condainstallmingwlibpython2.condainstalltheono3.修改环境变量,D:ProgramFilesAnaconda3;D:ProgramFilesAnaconda3Libraryin;D:ProgramFilesAnaconda3Min 查看详情
windows下安装theano成功,但一import就报decode错是啥原因
参考技术A要做卷积神经网络的一些东西,所以要装theano,网上很多Theano安装教程版本较老,而各安装包更新很快,参考价值有限。走了很多弯路才装好,把这个过程记录下来,希望对大家有帮助~~我的配置:win7,32位(64和32位安... 查看详情
PostgreSQL 9.2.4-x64 在 windows 8 Pro 64bit 上的安装问题
】PostgreSQL9.2.4-x64在windows8Pro64bit上的安装问题【英文标题】:PostgreSQL9.2.4-x64installationproblemsonwindows8Pro64bit【发布时间】:2013-05-2407:31:15【问题描述】:我正在尝试在Windows8Pro64上安装PostgreSQL9.2.4,但安装问题接近尾声时,我一直收... 查看详情
windows下pycharm使用theano的方法
安装theano前需要自行安装Anaconda和PyCharm。在网上查了在PyCharm上安装theano的方法,但是均遇到了一些问题,现将问题与解决方案介绍如下。(一)第一种安装方式 打开cmd命令窗口或者Anaconda命令窗口,输入 pipinstallthean... 查看详情
python学习笔记windows下安装theano
...实验室的电脑还是我的笔记本,只要是windows下,theano.test()都是不通过的。虽然能使用一些theano中的函数,但是我感觉很不好。所以还是转Ubuntu了……不要在这种地方瞎折腾了。—————————————————... 查看详情
theano安装
Windows下安装Theanopipinstalltheano报错,安装Scipy报错,如截图。搜了下nolapack/blasresourcesfoundhttp://stackoverflow.com/questions/28190534/windows-scipy-install-no-lapack-blas-resources-found给出解决方案然后从网上下载scipywheelpa 查看详情
如何在 Windows 10 64 位上安装 pygraphviz
】如何在Windows1064位上安装pygraphviz【英文标题】:howtoinstallpygraphvizonwindows1064bit【发布时间】:2017-04-1003:16:14【问题描述】:有人在windows1064bit上成功安装了pygraphviz吗?我用python3.564bit&32bit尝试了anaconda,但没有成功。这是我... 查看详情
如何在 windows server 2008 64bits 上安装 mod_ssl
】如何在windowsserver200864bits上安装mod_ssl【英文标题】:Howtoinstallmod_sslonwindowsserver200864bits【发布时间】:2012-12-0904:37:16【问题描述】:我们管理自己的虚拟机WindowsServer2008R2STD64位,它用作Web服务器。APACHEhttpd-2.2.22-win32-x86-no_ssl安... 查看详情
Android Studio 在 Windows 8 64bit 上启动失败 [重复]
...4bit[duplicate]【发布时间】:2013-05-1121:11:00【问题描述】:安装正常,发现JDK也没有问题。安装后程序不启动。双击该图标不会发生任何事情。以管理员身份开始或安装“只为我”或为所有用户安装都没有区别。我没有答案。这可... 查看详情
ubuntu中用pip安装了theano后怎么找不到theano,tensor,signal,downsample
参考技术A1.首先安装python,我选择安装Anaconda(Windows64-BitPython2.7GraphicalInstaller下载地址)。Anaconda的一些命令(在Anaconda的命令行窗口输入):condalist#该命令,将列出Anaconda安装的所有应用包,本回答被提问者采纳 查看详情
对象不支持此属性或方法 Rails Windows 64bit
...布时间】:2015-04-0310:45:54【问题描述】:我在SurfacePro3上安装了Rails,并在尝试查看页面后遇到此错误。我尝试了一些建议,例如使用libv8安装rubyracer,但没有帮助。TypeError:对象不支持此属性 查看详情
原子 rails4 windows 64bit
...描述】:有没有人解决这个问题?我已经尝试了所有在线安装DevKit,路径中的环境变量等,但仍然没有......C:\\Sites>geminstallrailsFetching:atomic-1.1.14.gem(100%)TemporarilyenhancingPATHt 查看详情
如何在 Windows 上配置 theano?
】如何在Windows上配置theano?【英文标题】:HowconfiguretheanoonWindows?【发布时间】:2015-03-1616:28:38【问题描述】:我已经在Windows机器上安装了Theano,并按照配置instructions。我将以下.theanorc.txt文件放在C:\\Users\\my_username文件夹中:#!sh... 查看详情
针对windows64位系统中matlab没有ledcontrolactivex控件的解决方法
...XControl控件位于GaugesBlockset模块中,而GaugesBlockset模块只能安装在Matlab32-bit的版本中(并不是一定需要安装在window32-bit,本人测试环境为win1064bit),在win1064-bit环境下安装时默认安 查看详情