Commit 2f5bdf3a authored by Mark Florisson's avatar Mark Florisson Committed by Vitja Makarov

Update comments

parent 508d7cc6
...@@ -2067,6 +2067,8 @@ class RawCNameExprNode(ExprNode): ...@@ -2067,6 +2067,8 @@ class RawCNameExprNode(ExprNode):
class ParallelThreadsAvailableNode(AtomicExprNode): class ParallelThreadsAvailableNode(AtomicExprNode):
""" """
Note: this is disabled and not a valid directive at this moment
Implements cython.parallel.threadsavailable(). If we are called from the Implements cython.parallel.threadsavailable(). If we are called from the
sequential part of the application, we need to call omp_get_max_threads(), sequential part of the application, we need to call omp_get_max_threads(),
and in the parallel part we can just call omp_get_num_threads() and in the parallel part we can just call omp_get_num_threads()
......
...@@ -959,7 +959,7 @@ class ParallelRangeTransform(CythonTransform, SkipDeclarations): ...@@ -959,7 +959,7 @@ class ParallelRangeTransform(CythonTransform, SkipDeclarations):
module node, set there by InterpretCompilerDirectives. module node, set there by InterpretCompilerDirectives.
x = cython.parallel.threadavailable() -> ParallelThreadAvailableNode x = cython.parallel.threadavailable() -> ParallelThreadAvailableNode
with cython.parallel(nogil=True): -> ParallelWithBlockNode with nogil, cython.parallel.parallel: -> ParallelWithBlockNode
print cython.parallel.threadid() -> ParallelThreadIdNode print cython.parallel.threadid() -> ParallelThreadIdNode
for i in cython.parallel.prange(...): -> ParallelRangeNode for i in cython.parallel.prange(...): -> ParallelRangeNode
... ...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment