Commit 9029ad36 authored by ESTERIE Pierre's avatar ESTERIE Pierre

Adding timers to GroupTaskAlgo

parent 7bd01fec
......@@ -18,7 +18,7 @@
#include <omp.h>
template <class OctreeClass, class CellContainerClass, class KernelClass, class ParticleGroupClass, class ParticleContainerClass>
class FGroupTaskAlgorithm : public FAbstractAlgorithm {
class FGroupTaskAlgorithm : public FAbstractAlgorithm, public FAlgorithmTimers {
protected:
template <class OtherBlockClass>
struct BlockInteractions{
......@@ -87,7 +87,7 @@ protected:
*/
void executeCore(const unsigned operationsToProceed) override {
FLOG( FLog::Controller << "\tStart FGroupTaskAlgorithm\n" );
Timers[P2MTimer].tic();
#pragma omp parallel num_threads(MaxThreads)
{
#pragma omp single nowait
......@@ -114,6 +114,7 @@ protected:
if( operationsToProceed & FFmmL2P ) mergePass();
}
}
Timers[P2MTimer].tac();
}
/**
......
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