Commit 087d0f6a authored by berenger-bramas's avatar berenger-bramas
Browse files

Prefetch an array in the kernels :

Prefetch_Write(directNeighbors[idxDirectNeighbors+2]);

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@127 2616d619-271b-44dc-8df4-d4a8f33a7222
parent f2f45fd1
......@@ -1331,6 +1331,7 @@ public:
while( iterTarget.hasNotFinished() ){
for(int idxDirectNeighbors = 0 ; idxDirectNeighbors < size ; ++idxDirectNeighbors){
Prefetch_Write(directNeighbors[idxDirectNeighbors+2]);
if(inCurrentIndex < inNeighborsIndex[idxDirectNeighbors] ){
typename ContainerClass<ParticleClass>::BasicIterator iterSource(*directNeighbors[idxDirectNeighbors]);
while( iterSource.hasNotFinished() ){
......
......@@ -1392,6 +1392,7 @@ public:
while( iterTarget.hasNotFinished() ){
for(int idxDirectNeighbors = 0 ; idxDirectNeighbors < size ; ++idxDirectNeighbors){
Prefetch_Write(directNeighbors[idxDirectNeighbors+2]);
if(inCurrentIndex < inNeighborsIndex[idxDirectNeighbors] ){
typename ContainerClass<ParticleClass>::BasicIterator iterSource(*directNeighbors[idxDirectNeighbors]);
while( iterSource.hasNotFinished() ){
......
......@@ -1645,6 +1645,7 @@ public:
while( iterTarget.hasNotFinished() ){
for(int idxDirectNeighbors = 0 ; idxDirectNeighbors < size ; ++idxDirectNeighbors){
Prefetch_Write(directNeighbors[idxDirectNeighbors+2]);
if(inCurrentIndex < inNeighborsIndex[idxDirectNeighbors] ){
typename ContainerClass<ParticleClass>::BasicIterator iterSource(*directNeighbors[idxDirectNeighbors]);
while( iterSource.hasNotFinished() ){
......
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