Commit f44b7f2c authored by Marcel Koch's avatar Marcel Koch
Browse files

update timings

parent fb0af1df
......@@ -204,12 +204,12 @@ class GinkgoBlockSolver : public Solver< OperatorType >
monolithic_matrix_ = gko::share( csr::create( solver_exec_ ) );
gko::as< mtx >( host_monolithic_matrix_ )->convert_to( monolithic_matrix_.get() );
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver Gather matrix" );
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver Permute matrix" );
if ( comm_->size() > 1 && monolithic_matrix_->get_size() )
{
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver Permute matrix" );
monolithic_matrix_ = gko::as< csr >( monolithic_matrix_->permute( &perm ) );
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver Permute matrix" );
}
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver Permute matrix" );
{
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver Gather preconditioner" );
......@@ -354,9 +354,9 @@ class GinkgoBlockSolver : public Solver< OperatorType >
x0->convert_to( gko::lend( global_x0 ) );
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver Gather vectors" );
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver Apply" );
if ( monolithic_matrix_->get_size() )
{
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver Apply" );
if ( comm_->size() > 1 )
{
auto permuted_global_rhs = gko::as< dense >( global_rhs->row_permute( &perm ) );
......@@ -368,9 +368,9 @@ class GinkgoBlockSolver : public Solver< OperatorType >
{
solver_->apply( gko::lend( global_rhs ), gko::lend( global_x0 ) );
}
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver Apply" );
}
WALBERLA_MPI_BARRIER();
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver Apply" );
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver Scatter vectors" );
gather_idxs_ = compute_gather_idxs( part_ );
......
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