Commit d0895846 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

fix some openmp craziness.


Former-commit-id: 4af37a7a013b330733a29981c5d7dc3ebc8f9f24
parent c6323361
...@@ -754,11 +754,17 @@ void engine_step ( struct engine *e ) { ...@@ -754,11 +754,17 @@ void engine_step ( struct engine *e ) {
break; break;
} }
} */ } */
for ( k = 0 ; k < e->s->nr_cells ; k++ ) { #pragma omp parallel private(k)
#pragma omp task {
engine_map_kick_first( &e->s->cells[k] , e ); #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 ); TIMER_TOC( timer_kick1 );
// for(k=0; k<10; ++k) // for(k=0; k<10; ++k)
......
Supports Markdown
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