Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d4d9be53
提交
d4d9be53
authored
1月 27, 2010
作者:
James Bergstra
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modified install.txt to reflect new config options for blas
上级
2e323b39
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
25 行增加
和
45 行删除
+25
-45
install.txt
doc/install.txt
+25
-45
没有找到文件。
doc/install.txt
浏览文件 @
d4d9be53
...
@@ -86,48 +86,31 @@ In csh:
...
@@ -86,48 +86,31 @@ In csh:
setenv PYTHONPATH <path to Theano's parent dir>/Theano:$PYTHONPATH
setenv PYTHONPATH <path to Theano's parent dir>/Theano:$PYTHONPATH
Configuring Theano's environmental variables
Troubleshooting: Make sure you have a BLAS library
---------------------------------------------
-----------------------------------------------------
Two environment variables are used to control automatic code
Theano currently depends on having a BLAS library to link against. The
generation. It is possible to use Theano in a way which avoids all
default is to use the blas installation information in numpy:
automatic code generation, but that way is much, much slower.
``numpy.distutils.__config__.show``, but if numpy is not configured
[correctly] for using a fast BLAS, you should tell Theano which BLAS to use
- ``THEANO_BLAS_LDFLAGS``:
via the THEANO_FLAGS environment variable, or a ``.theanorc`` file.
A space-separated list of options (flags) that will be passed to the
compiler. It should include library names to link against for BLAS
The .theanorc file is the simplest way to set a relatively permanent option
functions. Default: ``-lblas``.
like this one. Add a ``[blas]`` section with an ``ldflags``
entry like this:
- ``THEANO_BASE_COMPILEDIR``:
A directory with read/write access permissions where Theano will store
.. code-block:: text
a sub directory for each architecture for autogenerated code and C modules.
Default: ``$HOME/.theano/``. The sub directory is name as
# other stuff can go here
``compiledir_xxx`` where ``xxx`` is a platform identifier.
If this
[blas]
directory does not exist or does not have the correct permissions,
ldflags = -lf77blas -latlas #put your flags here
Theano will try to create it with the correct permissions. If that fails,
an exception will be raised and no C code will be compiled.
# other stuff can go here
- ``THEANO_COMPILEDIR``:
If you prefer to use an environment variable, type something like this: ``export THEANO_FLAGS="blas.ldflags=<gcc linker flags>"``
A directory with read/write access permissions where Theano will store
so maybe ``export THEANO_FLAGS="blas.ldflags=-lf77blas -latlas"`` might work for you.
autogenerated code and C modules. Default:
``$HOME/.theano/compiledir_xxx`` where ``xxx`` is a platform identifier.
If this
directory does not exist or does not have the correct permissions,
Theano will try to create it with the correct permissions. If that fails,
an exception will be raised and no C code will be compiled.
- ``THEANO_DEFAULT_MODE``:
String value specifying the default mode to use when compiling Theano
graphs. This can be one of the strings defined in
:ref:`using_modes`.
Possible values so far are:
- ``'FAST_COMPILE'``
- ``'FAST_RUN'``
- ``'DEBUG_MODE'``
Omitting this variable defaults the mode to ``'FAST_RUN'``.
Testing your installation
Testing your installation
---------------------------
---------------------------
...
@@ -217,9 +200,6 @@ Mac
...
@@ -217,9 +200,6 @@ Mac
- ``scipy`` depends on ATLAS (a BLAS library), which will be installed by MacPorts.
- ``scipy`` depends on ATLAS (a BLAS library), which will be installed by MacPorts.
- Finally, set ``THEANO_BLAS_LDFLAGS`` to something which will link against said BLAS
library. E.g., ``THEANO_BLAS_LDFLAGS='-lcblas -latlas -lgfortran'``.
These installation instructions have not tested recently, please infom us of your results!
These installation instructions have not tested recently, please infom us of your results!
We would be especially interested in dependencies that we missed listing, as well as tests
We would be especially interested in dependencies that we missed listing, as well as tests
that fail on your platform (use the ``theano-users@googlegroups.com`` mailing list).
that fail on your platform (use the ``theano-users@googlegroups.com`` mailing list).
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论