Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2c712543 authored by berenger-bramas's avatar berenger-bramas
Browse files

Add "schedule(dynamic)" to loop for P2P for threaded version.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@118 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 6dd55d3c
Branches
Tags
No related merge requests found
......@@ -358,7 +358,7 @@ public:
for(int idxShape = 0 ; idxShape < SizeShape ; ++idxShape){
const int endAtThisShape = this->shapeLeaf[idxShape] + previous;
#pragma omp for
#pragma omp for schedule(dynamic)
for(int idxLeafs = previous ; idxLeafs < endAtThisShape ; ++idxLeafs){
LeafData& currentIter = leafsDataArray[idxLeafs];
myThreadkernels.L2P(currentIter.cell, currentIter.targets);
......
......@@ -876,7 +876,7 @@ public:
for(int idxShape = 0 ; idxShape < SizeShape ; ++idxShape){
const int leafAtThisShape = shapeLeaf[idxShape];
#pragma omp for
#pragma omp for schedule(dynamic)
for(int idxLeafs = startIdx ; idxLeafs < leafAtThisShape ; ++idxLeafs){
OctreeIterator currentIter = shapeArray[idxShape][idxLeafs];
myThreadkernels->L2P(currentIter.getCurrentCell(), currentIter.getCurrentListTargets());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment