From 93478c3a0578a808b3809539ebf4bf45419a09ba Mon Sep 17 00:00:00 2001 From: Fritz Goebel Date: Wed, 29 Nov 2023 15:55:44 +0000 Subject: [PATCH] Fix missed moves to gko::experimental::mpi --- include/ginkgo/core/distributed/matrix.hpp | 145 ++++++++++++++++++++- 1 file changed, 143 insertions(+), 2 deletions(-) diff --git a/include/ginkgo/core/distributed/matrix.hpp b/include/ginkgo/core/distributed/matrix.hpp index b8d0807df8e..a32d6c3fb16 100644 --- a/include/ginkgo/core/distributed/matrix.hpp +++ b/include/ginkgo/core/distributed/matrix.hpp @@ -117,6 +117,147 @@ auto with_matrix_type(Args&&... create_args) } +namespace experimental { +namespace distributed { + +#include + + +#if GINKGO_BUILD_MPI + + +#include +#include +#include +#include + + +namespace gko { +namespace matrix { + + +template +class Csr; + + +} + + +namespace detail { + + +/** +#include + + +#if GINKGO_BUILD_MPI + + +#include +#include +#include +#include + + +namespace gko { +namespace matrix { + + +template +class Csr; + + +} + + +namespace detail { + + +/** + * Helper struct to test if the Builder type has a function create(std::shared_ptr). + */ +template +struct is_matrix_type_builder : std::false_type {}; + + +template +struct is_matrix_type_builder< + Builder, ValueType, IndexType, + gko::xstd::void_t< + decltype(std::declval().template create( + std::declval>()))>> + : std::true_type {}; + + +template