diff --git a/Src/Core/FFmmAlgorithmThreadProc.hpp b/Src/Core/FFmmAlgorithmThreadProc.hpp index 5e5de291a039f2c4d8f3a1a77daed58496c44cb2..3893ca6279875324333efbb0c6c816309125e844 100644 --- a/Src/Core/FFmmAlgorithmThreadProc.hpp +++ b/Src/Core/FFmmAlgorithmThreadProc.hpp @@ -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" ); + } diff --git a/Src/Utils/FAssertable.hpp b/Src/Utils/FAssertable.hpp index dfe28bcc93753922ee24aab2d04197fae906f773..d777089a422279736672d90a524e50de376e3f53 100644 --- a/Src/Utils/FAssertable.hpp +++ b/Src/Utils/FAssertable.hpp @@ -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> diff --git a/Tests/testFmmAlgorithmProc.cpp b/Tests/testFmmAlgorithmProc.cpp index 6d1667044dd404102b646f7ec5a22f7eb93e7111..3dbff6d9572eba78a5abb59c7933b8eeaeafb6db 100644 --- a/Tests/testFmmAlgorithmProc.cpp +++ b/Tests/testFmmAlgorithmProc.cpp @@ -1,9 +1,5 @@ // /!\ 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