提交 99eec4e9 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo fixes in doc

上级 34045456
......@@ -216,7 +216,7 @@ import theano and print the config variable, as in:
Positive int value, default: 200000.
This specifies the vectors minimum size for which elemwise ops
use openmp, if openmp is enable.
use openmp, if openmp is enabled.
.. attribute:: cast_policy
......
......@@ -17,8 +17,8 @@ those operations will run in parallel in Theano.
The most frequent way to control the number of threads used is via the
``OMP_NUM_THREADS`` environment variable. Set it to the number of
threads you want to use before starting the python process. Some BLAS
implementations support other enviroment variables.
threads you want to use before starting the Python process. Some BLAS
implementations support other environment variables.
Parallel element wise ops with OpenMP
......@@ -35,9 +35,9 @@ tensor size for which the operation is parallelized because for short
tensors using OpenMP can slow down the operation. The default value is
``200000``.
For simple(fast) operation you can obtain a speed up with very large
tensors while for more complex operation you can obtain a good speed
up also for smaller tensor.
For simple (fast) operations you can obtain a speed-up with very large
tensors while for more complex operations you can obtain a good speed-up
also for smaller tensors.
There is a script ``elemwise_openmp_speedup.py`` in ``theano/misc/``
which you can use to tune the value of ``openmp_elemwise_minsize`` for
......@@ -47,4 +47,4 @@ without OpenMP and shows the time difference between the cases.
The only way to control the number of threads used is via the
``OMP_NUM_THREADS`` environment variable. Set it to the number of threads
you want to use before starting the python process.
you want to use before starting the Python process.
......@@ -483,9 +483,9 @@ AddConfigVar('openmp',
)
AddConfigVar('openmp_elemwise_minsize',
"If OpenMP is enable, this is the minimum size of vector "
"for which the openmp parallel for is enable."
"Used in element wise ops",
"If OpenMP is enabled, this is the minimum size of vectors "
"for which the openmp parallelization is enabled "
"in element wise ops.",
IntParam(200000),
in_c_key=False,
)
......@@ -9,7 +9,7 @@ parser = OptionParser(usage='%prog <options>\n Compute time for'
' fast and slow elemwise operations')
parser.add_option('-N', '--N', action='store', dest='N',
default=theano.config.openmp_elemwise_minsize, type="int",
help="Number of vector element")
help="Number of vector elements")
def runScript(N):
......
......@@ -11,7 +11,7 @@ parser = OptionParser(usage='%prog <options>\n Compute time for'
' fast and slow elemwise operations')
parser.add_option('-N', '--N', action='store', dest='N',
default=theano.config.openmp_elemwise_minsize, type="int",
help="Number of vector element")
help="Number of vector elements")
parser.add_option('--script', action='store_true', dest='script',
default=False,
help="Run program as script and print results on stdoutput")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论