Commit 505f0e3f authored by berenger-bramas's avatar berenger-bramas
Browse files

Improve MPI fmm

Still a problem with fmb & mpi.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@71 2616d619-271b-44dc-8df4-d4a8f33a7222
parent d965d3d7
......@@ -443,6 +443,7 @@ public:
FDEBUG(FTic computationCounter);
FDEBUG(FTic sendCounter);
FDEBUG(FTic receiveCounter);
FDEBUG(FTic waitingToReceiveCounter);
OctreeIterator octreeIterator(tree);
octreeIterator.moveDown();
......@@ -583,7 +584,9 @@ public:
char buffer[BufferSize];
while(needToReceive){
FDEBUG(waitingToReceiveCounter.tic());
app.receiveData( BufferSize, idxLevel, buffer, &source, &filled);
FDEBUG(waitingToReceiveCounter.tac());
for(int idxBuff = 0 ; idxBuff < filled;){
memcpy(&position,&buffer[idxBuff],sizeof(int));
idxBuff += sizeof(int);
......@@ -627,6 +630,8 @@ public:
FDEBUG( FDebug::Controller << "\t\t Computation : " << computationCounter.cumulated() << " s\n" );
FDEBUG( FDebug::Controller << "\t\t Send : " << sendCounter.cumulated() << " s\n" );
FDEBUG( FDebug::Controller << "\t\t Receive : " << receiveCounter.cumulated() << " s\n" );
FDEBUG( FDebug::Controller << "\t\t Wait data to Receive : " << waitingToReceiveCounter.cumulated() << " s\n" );
}
......
......@@ -2,6 +2,7 @@
#define FASSERTABLE_HPP
// /!\ Please, you must read the license at the bottom of this page
#include <stdlib.h>
#include <sstream>
#include <iostream>
......
// /!\ Please, you must read the license at the bottom of this page
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include "../Src/Utils/FMpi.hpp"
#include "../Src/Utils/FTic.hpp"
......@@ -29,6 +25,12 @@
#include "../Src/Components/FBasicKernels.hpp"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
// Compile by : g++ testFmmAlgorithmProc.cpp ../Src/Utils/FAssertable.cpp ../Src/Utils/FDebug.cpp ../Src/Utils/FTrace.cpp -lgomp -fopenmp -O2 -o testFmmAlgorithmProc.exe
/** This program show an example of use of
......
Markdown is supported
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