46 #include <ginkgo/ginkgo.hpp> 49 #include <settings.hpp> 64 template <
typename ValueType = gko::default_precision,
65 typename IndexType = gko::int32>
69 static int get_local_rank(MPI_Comm mpi_communicator);
71 static int get_local_num_procs(MPI_Comm mpi_communicator);
73 static bool check_subd_locality(MPI_Comm mpi_communicator,
74 int neighbor_rank,
int my_rank);
76 static void print_matrix(
77 const gko::matrix::Csr<ValueType, IndexType> *matrix,
int rank,
80 static void print_vector(
const gko::matrix::Dense<ValueType> *vector,
81 int rank, std::string name);
83 static int find_duplicates(IndexType val, std::size_t index,
84 const IndexType *data, std::size_t length);
86 static bool assert_correct_permutation(
87 const gko::matrix::Permutation<IndexType> *input_perm);
89 static bool assert_correct_cuda_devices(
int num_devices,
int my_rank);
The utilities class which provides some checks and basic utilities.
Definition: utils.hpp:66
The Schwarz wrappers namespace.
Definition: comm_helpers.hpp:49