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

refine timings

parent 37f633b8
Pipeline #34326 failed with stages
in 23 minutes and 37 seconds
......@@ -504,7 +504,9 @@ class GinkgoCGSolver : public Solver< OperatorType >
{
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver Set-Up" );
matrix_ = csr::create( solver_exec_ );
x.getStorage()->getTimingTree()->start( "Ginkgo CG matrix-gather" );
host_matrix_->convert_to( gko::lend( matrix_ ) );
x.getStorage()->getTimingTree()->stop( "Ginkgo CG matrix-gather" );
if ( matrix_->get_size()[0] > 0 && matrix_->get_size()[1] > 0 )
{
......@@ -532,8 +534,10 @@ class GinkgoCGSolver : public Solver< OperatorType >
}
auto global_rhs = dense::create( host_exec_ );
auto global_x0 = dense::create( host_exec_ );
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver gather" );
rhs->convert_to( gko::lend( global_rhs ) );
x0->convert_to( gko::lend( global_x0 ) );
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver gather" );
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver Apply" );
if ( matrix_->get_size()[0] > 0 && matrix_->get_size()[1] > 0 )
......@@ -542,11 +546,13 @@ class GinkgoCGSolver : public Solver< OperatorType >
}
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver Apply" );
x.getStorage()->getTimingTree()->start( "Ginkgo CG Solver scatter" );
if ( doAssemble )
{
gather_idxs_ = compute_gather_idxs( part_ );
}
scatter_global_vector( global_x0.get(), x0, gather_idxs_, comm_ );
x.getStorage()->getTimingTree()->stop( "Ginkgo CG Solver scatter" );
dir_handler->update_solution( x0 );
......
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