Skip to content
Snippets Groups Projects
Commit 607a25a1 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

added kernel measurement AssocToBlock

parent 0d073852
Branches
Tags
No related merge requests found
...@@ -258,6 +258,14 @@ int main( int argc, char ** argv ) ...@@ -258,6 +258,14 @@ int main( int argc, char ** argv )
WcTimingPool tpImbalanced; WcTimingPool tpImbalanced;
WcTimingPool tpBalanced; WcTimingPool tpBalanced;
WALBERLA_MPI_BARRIER();
tpImbalanced["AssocToBlock"].start();
for (int64_t i=0; i < params.simulationSteps; ++i)
{
ps->forEachParticle(true, kernel::SelectLocal(), accessor, assoc, accessor);
}
tpImbalanced["AssocToBlock"].end();
WALBERLA_MPI_BARRIER(); WALBERLA_MPI_BARRIER();
tpImbalanced["GenerateLinkedCells"].start(); tpImbalanced["GenerateLinkedCells"].start();
for (int64_t i=0; i < params.simulationSteps; ++i) for (int64_t i=0; i < params.simulationSteps; ++i)
...@@ -358,6 +366,14 @@ int main( int argc, char ** argv ) ...@@ -358,6 +366,14 @@ int main( int argc, char ** argv )
sortParticleStorage(*ps, params.sorting, lc->domain_, uint_c(lc->numCellsPerDim_[0])); sortParticleStorage(*ps, params.sorting, lc->domain_, uint_c(lc->numCellsPerDim_[0]));
} }
WALBERLA_MPI_BARRIER();
tpBalanced["AssocToBlock"].start();
for (int64_t i=0; i < params.simulationSteps; ++i)
{
ps->forEachParticle(true, kernel::SelectLocal(), accessor, assoc, accessor);
}
tpBalanced["AssocToBlock"].end();
WALBERLA_MPI_BARRIER(); WALBERLA_MPI_BARRIER();
tpBalanced["GenerateLinkedCells"].start(); tpBalanced["GenerateLinkedCells"].start();
for (int64_t i=0; i < params.simulationSteps; ++i) for (int64_t i=0; i < params.simulationSteps; ++i)
......
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