提交 6e9ced57 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Updated Windows install instructions to say GPU does not work, also replaced…

Updated Windows install instructions to say GPU does not work, also replaced refs to Python 2.7 by Python 2.6 because Python(x,y) is currently using 2.6
上级 631c931d
...@@ -19,7 +19,8 @@ instructions below for detailed installation steps): ...@@ -19,7 +19,8 @@ instructions below for detailed installation steps):
Linux, Mac OS X or Windows operating system Linux, Mac OS X or Windows operating system
We develop mainly on 64-bit Linux machines. 32-bit architectures are We develop mainly on 64-bit Linux machines. 32-bit architectures are
not well-tested. not well-tested. Note that GPU computing does not work yet under
Windows.
Python_ >= 2.4 Python_ >= 2.4
The development package (``python-dev`` or ``python-devel`` The development package (``python-dev`` or ``python-devel``
...@@ -469,7 +470,7 @@ components as in Python(x,y) that are required by Theano, follow these steps: ...@@ -469,7 +470,7 @@ components as in Python(x,y) that are required by Theano, follow these steps:
sub-directory are in your system path. This may be done by sub-directory are in your system path. This may be done by
modifying the global ``PATH`` Windows environment variables, or by creating modifying the global ``PATH`` Windows environment variables, or by creating
a ``.profile`` file in your MinGW home, containing a line like a ``.profile`` file in your MinGW home, containing a line like
``export PATH=$PATH:/c/Python27:/c/Python27/Scripts`` (note that the latter ``export PATH=$PATH:/c/Python26:/c/Python26/Scripts`` (note that the latter
will work only when you run Theano from a MinGW shell). will work only when you run Theano from a MinGW shell).
- In order to run Theano's test-suite, you will need `nose - In order to run Theano's test-suite, you will need `nose
...@@ -661,10 +662,14 @@ follows: ...@@ -661,10 +662,14 @@ follows:
Using the GPU Using the GPU
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
Please note that these are tentative instructions (we have not yet been able to At this point, GPU computing does not work under Windows. The current main
get the GPU to work under Windows with Theano). issue is that the compilation commands used under Linux / MacOS to create
Please report your own successes / failures on the `theano-users`_ mailing list. and use a CUDA-based shared library with the nvcc compiler do not work with
Windows DLLs. If anyone can figure out the proper compilation steps for
Windows, please let us know on the `theano-dev`_ mailing list.
Instructions below should at least get you started so you can reproduce the
above-mentioned issue.
Those are instructions for the 32-bit version of Python (the one that comes Those are instructions for the 32-bit version of Python (the one that comes
with Python(x,y) is 32-bit). with Python(x,y) is 32-bit).
...@@ -679,44 +684,47 @@ use a compilation directory located somewhere else: ...@@ -679,44 +684,47 @@ use a compilation directory located somewhere else:
[global] [global]
base_compiledir=path_to_a_directory_without_such_characters base_compiledir=path_to_a_directory_without_such_characters
You also need to add in the configuration file those lines (make sure this
is the correct Python installation path):
.. code-block:: cfg
[cuda]
nvccflags=-LC:\Python27\libs
Then Then
1) Install CUDA driver (32-bit on 32-bit Windows, idem for 64-bit). 1) Install CUDA driver (32-bit on 32-bit Windows, idem for 64-bit).
2) Install CUDA toolkit 32-bit (even if you computer is 64-bit, 2) Install CUDA toolkit 32-bit (even if you computer is 64-bit,
must match the Python installation version) must match the Python installation version).
3) Install CUDA SDK 32-bit 3) Install CUDA SDK 32-bit.
4) Test some pre-compiled example of the sdk 4) Test some pre-compiled example of the sdk.
5) Download Visual Studio 2008 Express(free, VS2010 not supported by nvcc 3.1, 5) Download Visual Studio 2008 Express (free, VS2010 not supported by nvcc 3.1,
VS2005, not available for download, but supported by nvcc, the non free version should work too) VS2005 is not available for download but supported by nvcc, the non free version should work too).
6) Follow the instruction in the GettingStartedWindows.pdf file from CUDA web 6) Follow the instruction in the GettingStartedWindows.pdf file from the CUDA web
site to compile CUDA code with VS2008. If that don't work, you won't be site to compile CUDA code with VS2008. If that does not work, you will
able to compile GPU code with Theano. not be able to compile GPU code with Theano.
7) Put into you PATH environment variable the directory where cl.exe is. 7) Edit your Theano configuration file to add lines like the following
In my case it is: ``C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin`` (make sure these paths match your own specific installation):
8) Make sure the Theano folder is in your ``PYTHONPATH`` environment variable. .. code-block:: cfg
9) Then in Python do: ``import theano.sandbox.cuda`` [cuda]
nvccflags=-LC:\Python26\libs
[nvcc]
compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
8) In Python do: ``import theano.sandbox.cuda``. This will compile the
first CUDA file, and no error should occur.
9) Then run the Theano CUDA test files with nosetests from the
``theano/sandbox/cuda/tests`` subdirectory. In the current version of
Theano, this should fail with an error like:
.. code-block:: bash
That will print some error if their is an error to compile the first CUDA file. NVCC: nvcc fatal: Don't know what to do with
'C:/CUDA/compile/tmpmkgqx6/../cuda_ndarray/cuda_ndarray.pyd'
10) Then run the Theano CUDA test file. In Windows command line (cmd.exe),
run the program nosetests inside the Theano repository.
nosetests is installed by Python(x,y).
Generating the documentation Generating the documentation
---------------------------- ----------------------------
...@@ -739,3 +747,4 @@ The PDF of the documentation is ``html/theano.pdf``. ...@@ -739,3 +747,4 @@ The PDF of the documentation is ``html/theano.pdf``.
.. _theano-users: http://groups.google.com/group/theano-users?pli=1 .. _theano-users: http://groups.google.com/group/theano-users?pli=1
.. _theano-dev: http://groups.google.com/group/theano-dev?pli=1
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论