7#ifndef PECLET_CORE_SOLVER_ANDERSON_MPI_HPP
8#define PECLET_CORE_SOLVER_ANDERSON_MPI_HPP
22 c.
sumAll = [comm](
double* data,
int count) {
23 std::vector<double>
send(data, data + count);
26 c.
broadcast = [comm](
void* data, std::size_t bytes) {
int MPI_Bcast(void *, int, MPI_Datatype, int, MPI_Comm)
int MPI_Allreduce(const void *sbuf, void *rbuf, int count, MPI_Datatype dt, MPI_Op, MPI_Comm)
int MPI_Comm_rank(MPI_Comm, int *r)
AndersonComm andersonComm(MPI_Comm comm)
The collectives of comm for an AndersonState. The communicator must outlive the accelerator.
Kokkos::View< T *, MemSpace > View
1D device array.
The collectives of a distributed run.
std::function< void(void *data, std::size_t bytes)> broadcast
int rank
this rank in the communicator; rank 0's decisions win (design §6.1)
std::function< void(double *data, int count)> sumAll