From af0b8c74805eb790e04184be7b047cc7bb142a00 Mon Sep 17 00:00:00 2001 From: ginkgo-bot Date: Fri, 6 Oct 2023 16:10:45 +0000 Subject: [PATCH] Format files Co-authored-by: Tobias Ribizel --- core/test/log/papi.cpp | 6 ++---- core/test/utils/assertions.hpp | 4 ++-- reference/test/preconditioner/ilu.cpp | 6 ++---- reference/test/solver/gmres_kernels.cpp | 18 +++++++++--------- reference/test/solver/multigrid_kernels.cpp | 9 +++------ 5 files changed, 18 insertions(+), 25 deletions(-) diff --git a/core/test/log/papi.cpp b/core/test/log/papi.cpp index b4e51cdc31b..0928f35d1ba 100644 --- a/core/test/log/papi.cpp +++ b/core/test/log/papi.cpp @@ -471,8 +471,7 @@ TYPED_TEST(Papi, CatchesLinOpFactoryGenerateStarted) { auto factory = gko::solver::Bicgstab::build() - .with_criteria( - gko::stop::Iteration::build().with_max_iters(3u)) + .with_criteria(gko::stop::Iteration::build().with_max_iters(3u)) .on(this->exec); auto str = this->init(gko::log::Logger::linop_factory_generate_started_mask, "linop_factory_generate_started", factory.get()); @@ -492,8 +491,7 @@ TYPED_TEST(Papi, CatchesLinOpFactoryGenerateCompleted) { auto factory = gko::solver::Bicgstab::build() - .with_criteria( - gko::stop::Iteration::build().with_max_iters(3u)) + .with_criteria(gko::stop::Iteration::build().with_max_iters(3u)) .on(this->exec); TypeParam dummy; auto str = diff --git a/core/test/utils/assertions.hpp b/core/test/utils/assertions.hpp index a0f700e629e..d723d5a8964 100644 --- a/core/test/utils/assertions.hpp +++ b/core/test/utils/assertions.hpp @@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include #include @@ -52,13 +53,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include #include -#include #include "core/base/batch_utilities.hpp" #include "core/base/extended_float.hpp" -#include "ginkgo/core/base/name_demangling.hpp" namespace gko { diff --git a/reference/test/preconditioner/ilu.cpp b/reference/test/preconditioner/ilu.cpp index 22c9929219e..5150626c898 100644 --- a/reference/test/preconditioner/ilu.cpp +++ b/reference/test/preconditioner/ilu.cpp @@ -614,8 +614,7 @@ TEST_F(DefaultIlu, CanBeUsedAsPreconditioner) { auto solver = gko::solver::Bicgstab<>::build() - .with_criteria( - gko::stop::Iteration::build().with_max_iters(2u)) + .with_criteria(gko::stop::Iteration::build().with_max_iters(2u)) .with_preconditioner(default_ilu_prec_type::build()) .on(this->exec) ->generate(this->mtx); @@ -635,8 +634,7 @@ TEST_F(DefaultIlu, CanBeUsedAsGeneratedPreconditioner) default_ilu_prec_type::build().on(this->exec)->generate(this->mtx); auto solver = gko::solver::Bicgstab<>::build() - .with_criteria( - gko::stop::Iteration::build().with_max_iters(2u)) + .with_criteria(gko::stop::Iteration::build().with_max_iters(2u)) .with_generated_preconditioner(precond) .on(this->exec) ->generate(this->mtx); diff --git a/reference/test/solver/gmres_kernels.cpp b/reference/test/solver/gmres_kernels.cpp index c718d60343b..4c651e7917b 100644 --- a/reference/test/solver/gmres_kernels.cpp +++ b/reference/test/solver/gmres_kernels.cpp @@ -373,15 +373,15 @@ TYPED_TEST(Gmres, KernelMultiAxpy) this->small_final_iter_nums.get_data()[1] = restart; this->small_krylov_bases = gko::initialize( // restart+1 x rows x #rhs { - I{1, 10}, // 0, 0, x - I{2, 11}, // 0, 1, x - I{3, 12}, // 0, 2, x - I{4, 13}, // 1, 0, x - I{5, 14}, // 1, 1, x - I{6, 15}, // 1, 2, x - I{nan, nan}, // 2, 0, x - I{nan, nan}, // 2, 1, x - I{nan, nan}, // 2, 2, x + I{1, 10}, // 0, 0, x + I{2, 11}, // 0, 1, x + I{3, 12}, // 0, 2, x + I{4, 13}, // 1, 0, x + I{5, 14}, // 1, 1, x + I{6, 15}, // 1, 2, x + I{nan, nan}, // 2, 0, x + I{nan, nan}, // 2, 1, x + I{nan, nan}, // 2, 2, x }, this->exec); this->small_stop.get_data()[0].stop(7, false); diff --git a/reference/test/solver/multigrid_kernels.cpp b/reference/test/solver/multigrid_kernels.cpp index 86be56ce3cb..c35db0b1427 100644 --- a/reference/test/solver/multigrid_kernels.cpp +++ b/reference/test/solver/multigrid_kernels.cpp @@ -405,8 +405,7 @@ class Multigrid : public ::testing::Test { gko::matrix::IdentityFactory::create(exec)) .with_post_uses_pre(false) .with_mid_case(mid_case) - .with_criteria( - gko::stop::Iteration::build().with_max_iters(1u)) + .with_criteria(gko::stop::Iteration::build().with_max_iters(1u)) .with_cycle(cycle) .with_min_coarse_rows(1u) .on(this->exec)); @@ -426,8 +425,7 @@ class Multigrid : public ::testing::Test { .with_coarsest_solver(this->lo_factory) .with_post_uses_pre(true) .with_mid_case(mid_case) - .with_criteria( - gko::stop::Iteration::build().with_max_iters(1u)) + .with_criteria(gko::stop::Iteration::build().with_max_iters(1u)) .with_cycle(cycle) .with_min_coarse_rows(1u) .on(this->exec)); @@ -1263,8 +1261,7 @@ TYPED_TEST(Multigrid, ZeroGuessIgnoresInput) .with_coarsest_solver(this->coarsest_factory) .with_max_levels(2u) .with_mg_level(this->coarse_factory) - .with_criteria( - gko::stop::Iteration::build().with_max_iters(1u)) + .with_criteria(gko::stop::Iteration::build().with_max_iters(1u)) .with_min_coarse_rows(1u); auto normal_mg = common_part .with_default_initial_guess(