win7 安装theano+gpu
来源:互联网 发布:阿里云 网站端口 编辑:程序博客网 时间:2024/06/10 10:57
参考 http://deeplearning.net/software/theano/install_windows.html
至于theano的安装是比较简答的,可以选择集成的安装包(如:WinPython、Anaconda等),也可以使用python自带的命令pip安装。(Python的安装路径上不能有空格,否则会给后续的配置带来麻烦)
要使用GPU,系统还需安装CUDA驱动。两者都安装好之后,接下来就是要配置theano,使其能用上GPU
在C:\Users\<User name>\ (所谓的Home,或根目录)下建立一个文件 .theanorc.txt 里面复制如下内容:
[blas]ldflags = [gcc]cxxflags = [nvcc]fastmath = True[global]device = gpufloatX = float32
如果要详细配置各个编程参数,可如下配置:
[blas]ldflags=[gcc]cxxflags = -ID:\WinPython-2.7.10.3\python-2.7.10.amd64\include[nvcc]fastmath = True--flags=-LD:\WinPython-2.7.10.3\python-2.7.10.amd64\libs--compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\[global]device = gpufloatX = float32openmp = False
但在配置这个文件时,要特别注意gcc.cxxflags和nvcc.flags的路径中不能有空格,否则编译会出错。也就是Python的安装路径中不要含空格。
使用WinPython的,配置GPU时要注意配置文件的存放路径:
Configure Theano for GPU use¶
Theano can be configured with a .theanorc
text file (or .theanorc.txt
, whichever is easier for you to create under Windows). It should be placed in the directory pointed to by the %USERPROFILE%
variable. Please note, that WinPython changes it to WinPythonDir\settings
(so in our system this corresponds to D:\WinPython-2.7.10.3\settings
.
To use the GPU please write the following configuration file:
- win7 安装theano+gpu
- win7安装theano+GPU
- Deep Learning: win7安装Theano,配置GPU
- win7 64位成功安装theano,并且gpu配置成功
- win7 64位成功安装theano,并且gpu配置成功
- win7 64位成功安装theano 并且配置了GPU
- win7 pycharm下 安装使用GPU 的theano
- 64位win8安装theano+gpu(win7适用)
- Win7基于theano的keras安装及GPU加速
- keras 安装, win7+ubuntu双系统,gpu,fast.ai, theano
- win7安装theano
- win7安装theano
- 64位WIN7上成功安装theano,并运行了g++, GPU
- 64位WIN7上成功安装theano,并运行了g++, GPU
- 64位WIN7上成功安装theano,并运行了g++, GPU
- Win7 中安装Theano及配置CUDA以搭建GPU加速环境
- 64位WIN7上成功安装theano,并运行了g++, GPU
- win7 x64 上安装theano
- 通过简单的汇编代码了解计算机的工作原理
- 资格考试_第三章_证券投资基金的类型
- 正则表达式的使用
- Struts1与Struts2
- poj 3254 Corn Fields
- win7 安装theano+gpu
- Fork and Join: Java也可以轻松地编写并发程序 原文地址 作者:Julien Ponge 译者:iDestiny 资源下载: Java SE 7 Sample Code(Zi
- 静态域与静态方法
- linux c 编程模板总结(一)
- 【Scala类型系统】类型参数化和变化型注解
- 专访沙梓社:做个“Think Different”的技术牛人
- Spring进阶之路(1)-Spring核心机制:依赖注入/控制反转
- 安装版与绿色版,注册表
- 【Scala类型系统】函数式Queue的简易实现