提交 dbb03761 authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #2325 from abergeron/doc

Document nvcc.fastmath and fix cxx description.
...@@ -493,19 +493,29 @@ import theano and print the config variable, as in: ...@@ -493,19 +493,29 @@ import theano and print the config variable, as in:
.. attribute:: cxx .. attribute:: cxx
Default: Full path to g++ if g++ is present. Empty string otherwise.
Default: 'g++' if g++ is present. Empty string otherwise. Indicates which C++ compiler to use. If empty, no C++ code is
compiled. Theano automatically detects whether g++ is present and
disables C++ compilation when it is not. On darwin systems (Mac
OS X), it preferably looks for clang++ and uses that if available.
Indicates which C++ compiler to use. If empty, no C++ code is compiled. We print a warning if we detect that no compiler is present. It is
Theano automatically detects whether g++ is present and disables
C++ compilation when it is not.
We print a warning if we detect that g++ is not present. It is
recommended to run with C++ compilation as Theano will be much recommended to run with C++ compilation as Theano will be much
slower otherwise. slower otherwise.
Currently only g++ is supported, but supporting other compilers should This can be any compiler binary (full path or not) but things may
not be too difficult. break if the interface if not g++-compatible to some degree.
.. attribute:: config.nvcc.fastmath
Default: False
If true, this will enable fastmath (`--use_fast_math
<http://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/#options-for-steering-cuda-compilation>`_)
mode for compiled cuda code which makes div and sqrt faster at the
cost of precision. This also disables support for denormal
numbers.
.. attribute:: optimizer_excluding .. attribute:: optimizer_excluding
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论