Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
3487c4e0
Commit
3487c4e0
authored
May 04, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comments
parent
4dd190a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-0
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+1
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
3487c4e0
...
@@ -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()
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
3487c4e0
...
@@ -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
...
...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment