提交 26abcc7c authored 作者: Frederic's avatar Frederic

DOC: fix name and use better rest syntax.

上级 7eeca383
......@@ -18,24 +18,25 @@ in parallel in Theano.
Parallel element wise op with OpenMP
====================================
Beacuse element wise ops work on every tensor entry indipedently they can be
easly parallelized using openmp.
Because element wise ops work on every tensor entry independently they can be
easily parallelized using OpenMP.
To use openmp you must set the openmp flag in Theano configuration.
To use OpenMP you must set the OpenMP flag in Theano configuration.
Yuo can use the flag openmp_elemwise_minsize to set the minimum tensor size
for which the operation is parallelized because for short tensor using opemp
You can use the flag ``openmp_elemwise_minsize`` to set the minimum tensor size
for which the operation is parallelized because for short tensor using OpenMP
can slow down the operation.
If it is no specified the default value (200000) is used.
If it is no specified the default value ``200000`` is used.
For simple(fast) operation you can obtain a speed up for very long tensor
while for more complex operation you ca obtain a good speed up also for not
too long tensor.
There is a script (elemwise_openmp_speedup.py in theano/misc/) which you can
There is a script ``elemwise_openmp_speedup.py`` in ``theano/misc/`` which you can
use to choose that value for your machine.
The script run two elemwise operation (a fast and a slow one) for a vector of
size openmp_elemwise_minsize with and without openmp and show the time
size ``openmp_elemwise_minsize`` with and without OpenMP and show the time
difference between the two cases.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论