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
4855fccb
Commit
4855fccb
authored
Jul 18, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make pyobject temps firstprivate
parent
3ddd9709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+12
-8
No files found.
Cython/Compiler/Nodes.py
View file @
4855fccb
...
...
@@ -6101,16 +6101,20 @@ class ParallelStatNode(StatNode, ParallelNode):
code.start_collecting_temps() should have been called.
"""
if
self
.
is_parallel
:
private_cnames
=
cython
.
set
([
e
.
cname
for
e
in
self
.
privates
])
c
=
self
.
privatization_insertion_point
temps
=
[]
for
cname
,
type
in
code
.
funcstate
.
stop_collecting_temps
():
if
not
type
.
is_pyobject
:
temps
.
append
(
cname
)
temps
=
code
.
funcstate
.
stop_collecting_temps
()
privates
,
firstprivates
=
[],
[]
for
temp
,
type
in
temps
:
if
type
.
is_pyobject
:
firstprivates
.
append
(
temp
)
else
:
privates
.
append
(
temp
)
c
=
self
.
privatization_insertion_point
if
temps
:
c
.
put
(
" private(%s)"
%
", "
.
join
(
temps
))
if
privates
:
c
.
put
(
" private(%s)"
%
", "
.
join
(
privates
))
if
firstprivates
:
c
.
put
(
" firstprivate(%s)"
%
", "
.
join
(
firstprivates
))
if
self
.
breaking_label_used
:
shared_vars
=
[
Naming
.
parallel_why
]
...
...
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