Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
d0895846
Commit
d0895846
authored
Jun 23, 2013
by
Pedro Gonnet
Browse files
fix some openmp craziness.
Former-commit-id: 4af37a7a013b330733a29981c5d7dc3ebc8f9f24
parent
c6323361
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
d0895846
...
...
@@ -754,11 +754,17 @@ void engine_step ( struct engine *e ) {
break;
}
} */
for
(
k
=
0
;
k
<
e
->
s
->
nr_cells
;
k
++
)
{
#pragma omp task
engine_map_kick_first
(
&
e
->
s
->
cells
[
k
]
,
e
);
#pragma omp parallel private(k)
{
#pragma omp single
{
for
(
k
=
0
;
k
<
e
->
s
->
nr_cells
;
k
++
)
{
#pragma omp task
engine_map_kick_first
(
&
e
->
s
->
cells
[
k
]
,
e
);
}
}
#pragma omp taskwait
}
#pragma omp taskwait
TIMER_TOC
(
timer_kick1
);
// for(k=0; k<10; ++k)
...
...
Write
Preview
Supports
Markdown
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