message: gmres restart converges but slow
diff: @@ -94,11 +94,19 @@ protected:
  .with_reduction_factor(1e-15)
  .on_executor(exec))
  .on_executor(exec))
  - .on_executor(exec))
  + .on_executor(exec)),
  + mtx_medium(
  + gko::initialize<Mtx>({{-86.40, 153.30, -108.90, 8.60, -61.60},
  + {7.70, -77.00, 3.30, -149.20, 74.80},
  + {-121.40, 37.10, 55.30, -74.20, -19.20},
  + {-111.40, -22.60, 110.10, -106.20, 88.90},
  + {-0.70, 111.70, 154.40, 235.00, -76.50}},
  + exec))
  {}
  std::shared_ptr<const gko::Executor> exec;
  std::shared_ptr<Mtx> mtx;
  + std::shared_ptr<Mtx> mtx_medium;
  std::shared_ptr<Mtx> mtx_big;
  std::unique_ptr<gko::solver::Gmres<>::Factory> gmres_factory;
  std::unique_ptr<gko::solver::Gmres<>::Factory> gmres_factory_big;
  @@ -262,26 +270,26 @@ TEST_F(Gmres, SolvesBigDenseSystem1WithRestart)
  {
  auto gmres_factory_restart =
  gko::solver::Gmres<>::Factory::create()
  - .with_krylov_dim(5u)
  + .with_krylov_dim(4u)
  .with_criterion(
  gko::stop::Combined::Factory::create()
  .with_criteria(
  gko::stop::Iteration::Factory::create()
  - .with_max_iters(100u)
  + .with_max_iters(200u)
  .on_executor(exec),
  gko::stop::ResidualNormReduction<>::Factory::create()
  .with_reduction_factor(1e-15)
  .on_executor(exec))
  .on_executor(exec))
  .on_executor(exec);
  - auto solver = gmres_factory_restart->generate(mtx_big);
  + auto solver = gmres_factory_restart->generate(mtx_medium);
  auto b = gko::initialize<Mtx>(
  - {72748.36, 297469.88, 347229.24, 36290.66, 82958.82, -80192.15}, exec);
  - auto x = gko::initialize<Mtx>({0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, exec);
  + {-13945.16, 11205.66, 16132.96, 24342.18, -10910.98}, exec);
  + auto x = gko::initialize<Mtx>({0.0, 0.0, 0.0, 0.0, 0.0}, exec);
  solver->apply(b.get(), x.get());
  - ASSERT_MTX_NEAR(x, l({52.7, 85.4, 134.2, -250.0, -16.8, 35.3}), 1e-10);
  + ASSERT_MTX_NEAR(x, l({-140.20, -142.20, 48.80, -17.70, -19.60}), 1e-5);
  }
  