Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
a9d22250
提交
a9d22250
authored
12月 01, 2010
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed BLAS compilation instructions under Windows to be more coherent with other…
Fixed BLAS compilation instructions under Windows to be more coherent with other Windows instructions
上级
87709b3b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
36 行增加
和
23 行删除
+36
-23
install.txt
doc/install.txt
+36
-23
没有找到文件。
doc/install.txt
浏览文件 @
a9d22250
...
@@ -562,49 +562,61 @@ on Windows).
...
@@ -562,49 +562,61 @@ on Windows).
GotoBLAS2 can be downloaded
GotoBLAS2 can be downloaded
`here <http://www.tacc.utexas.edu/tacc-projects/gotoblas2/downloads>`__
`here <http://www.tacc.utexas.edu/tacc-projects/gotoblas2/downloads>`__
after registering on the website (we tested v1.13).
after registering on the website (we tested v1.13).
To compile it, you will also need
to install MSYS and Perl,
To compile it, you will also need
MSYS and Perl (installation steps are
as described below
.
described below)
.
The GotoBLAS makefiles actually expect a full UNIX environment (like
The GotoBLAS makefiles actually expect a full UNIX environment (like
Cygwin) but the BLAS compilation seems to work with only MSYS and Perl
Cygwin) but the BLAS compilation seems to work with only MSYS and Perl
(LAPACK compilation fails, but Theano does not need it).
(LAPACK compilation fails, but Theano does not need it).
a) Download the mingw-get command-line installer from the
If you installed MinGW manually as described above, you should already
`MinGW files <http://sourceforge.net/projects/mingw/>`_ (click
have MSYS included in your MinGW install, and should be able to start a
"View all files", and make sure you do not mix it up with
shell (Start / MinGW / MinGW Shell), in which case you can skip the MSYS
mingw-get-inst).
installation.
If instead you installed Python(x,y), you will need to install MSYS on
top of the MinGW installation included within Python(x,y), as follows:
b) Unpack it into your ``pythonxy\mingw`` directory.
- Download the mingw-get command-line installer binary from the
`MinGW files <http://sourceforge.net/projects/mingw/>`_ (click
"View all files", and make sure you do not mix it up with
mingw-get-inst).
c) On the command-line, install MSYS with
- Unpack it into your ``pythonxy\mingw`` directory.
- In a prompt (``cmd``), install MSYS with
.. code-block:: bash
.. code-block:: bash
mingw-get install msys-base
mingw-get install msys-base
d) Create an easily accessible shortcut (e.g. on your desktop) to
- Edit ``pythonxy\mingw\msys\1.0\msys.bat`` (e.g. in Wordpad) and add as first
``pythonxy\mingw\msys\1.0\msys.bat``. Run it and within the MSYS
line ``set HOME=%USERPROFILE%``. Then create an easily accessible shortcut
console, run the MSYS post-install script:
(e.g. on your desktop) to this file, run it and within the MSYS
console, run the MSYS post-install script:
.. code-block:: bash
.. code-block:: bash
/postinstall/pi.sh
/postinstall/pi.sh
It will ask for your MinGW installation directory (e.g.
It will ask for your MinGW installation directory (e.g.
``c:/pythonxy/mingw``).
``c:/pythonxy/mingw``).
Once you have a working MinGW/MSYS shell environment, you can go on as
follows:
e) Download `ActivePerl <http://www.activestate.com/activeperl/downloads>`_ and
a) Download `ActivePerl <http://www.activestate.com/activeperl/downloads>`_ and
install it (other Perl interpreters should also work).
install it (other Perl interpreters should also work, but were not
tested).
f
) Unpack GotoBLAS2, either using `7-zip <http://www.7-zip.org/>`__ or in
b
) Unpack GotoBLAS2, either using `7-zip <http://www.7-zip.org/>`__ or in
MSYS
with:
a shell
with:
.. code-block:: bash
.. code-block:: bash
tar zxvf /path/to/GotoBLAS2-1.13.tar.gz
tar zxvf /path/to/GotoBLAS2-1.13.tar.gz
g) In MSYS
, go into the GotoBLAS2 directory that was unpacked.
c) In a shell
, go into the GotoBLAS2 directory that was unpacked.
h
) Compile GotoBLAS2 with:
d
) Compile GotoBLAS2 with:
.. code-block:: bash
.. code-block:: bash
...
@@ -614,10 +626,11 @@ Cygwin) but the BLAS compilation seems to work with only MSYS and Perl
...
@@ -614,10 +626,11 @@ Cygwin) but the BLAS compilation seems to work with only MSYS and Perl
find many error messages in err.txt, but there should be an ``exports``
find many error messages in err.txt, but there should be an ``exports``
folder containing in particular ``libgoto2.dll``.
folder containing in particular ``libgoto2.dll``.
i) Copy ``libgoto2.dll`` from the ``exports`` folder to ``pythonxy\mingw\bin``
e) Copy ``libgoto2.dll`` from the ``exports`` folder to both your ``bin`` and
and ``pythonxy\mingw\lib``.
``lib`` subdirectories of your MinGW installation (which may be under
``pythonxy\mingw`` if you used Python(x,y)).
j
) Modify your .theanorc (or .theanorc.txt) with "ldflags = -lgoto2".
f
) Modify your .theanorc (or .theanorc.txt) with "ldflags = -lgoto2".
This setting can also be changed in Python for testing purpose (in which
This setting can also be changed in Python for testing purpose (in which
case it will remain only for the duration of your Python session):
case it will remain only for the duration of your Python session):
...
@@ -625,7 +638,7 @@ Cygwin) but the BLAS compilation seems to work with only MSYS and Perl
...
@@ -625,7 +638,7 @@ Cygwin) but the BLAS compilation seems to work with only MSYS and Perl
theano.config.blas.ldflags = "-lgoto2"
theano.config.blas.ldflags = "-lgoto2"
k
) To test the BLAS performance, you can run the script
g
) To test the BLAS performance, you can run the script
``theano/misc/check_blas.py``.
``theano/misc/check_blas.py``.
Note that you may control the number of threads used by GotoBLAS2 with
Note that you may control the number of threads used by GotoBLAS2 with
the ``GOTO_NUM_THREADS`` environment variable (default behavior is to use
the ``GOTO_NUM_THREADS`` environment variable (default behavior is to use
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论