45 [[clang::map_mpi_datatype]]
48 [[clang::map_mpi_datatype]]
51 [[clang::map_mpi_datatype]]
54 [[clang::map_mpi_datatype]]
57 [[clang::map_mpi_datatype]]
60 [[clang::map_mpi_datatype]]
63 [[clang::map_mpi_datatype]]
66 [[clang::map_mpi_datatype]]
69 [[clang::map_mpi_datatype]]
72 [[clang::map_mpi_datatype]]
109 static void send(
const peano4::parallel::TreeEntry& buffer,
int destination,
int tag, std::function<
void()> startCommunicationFunctor, std::function<
void()> waitFunctor, MPI_Comm communicator );
110 static void receive(
peano4::parallel::TreeEntry& buffer,
int source,
int tag, std::function<
void()> startCommunicationFunctor, std::function<
void()> waitFunctor, MPI_Comm communicator );
130 [[clang::pack_range(0,std::numeric_limits<int>::max())]]
int _id;
131 [[clang::pack_range(-1,std::numeric_limits<int>::max())]]
int _master;
137 #if !defined(__MPI_ATTRIBUTES_LANGUAGE_EXTENSION__)
static Rank & getInstance()
This operation returns the singleton instance.
The parallel namespace is Peano's core abstracts from both MPI and multicore parallelisation.
static void freeMultiscaleDataExchangeDatatype()
static void freeGlobalCommunciationDatatype()
static void receive(peano4::parallel::TreeEntry &buffer, int source, int tag, std::function< void()> startCommunicationFunctor, std::function< void()> waitFunctor, MPI_Comm communicator)
static MPI_Datatype getForkDatatype()
Hands out MPI datatype if we work without the LLVM MPI extension.
int _senderDestinationRank
static void sendAndPollDanglingMessages(const peano4::parallel::TreeEntry &message, int destination, int tag, MPI_Comm communicator=tarch::mpi::Rank::getInstance().getCommunicator())
TreeEntry(const TreeEntry ©)=default
static void initDatatype()
Wrapper around getDatatype() to trigger lazy evaluation if we use the lazy initialisation.
static void freeForkDatatype()
static MPI_Datatype getJoinDatatype()
static void shutdownDatatype()
Free the underlying MPI datatype.
TreeEntry(int __id, int __master)
static void freeBoundaryExchangeDatatype()
static void receiveAndPollDanglingMessages(peano4::parallel::TreeEntry &message, int source, int tag, MPI_Comm communicator=tarch::mpi::Rank::getInstance().getCommunicator())
std::string toString() const
void setMaster(int value)
static void receive(peano4::parallel::TreeEntry &buffer, int source, int tag, MPI_Comm communicator)
static void send(const peano4::parallel::TreeEntry &buffer, int destination, int tag, std::function< void()> startCommunicationFunctor, std::function< void()> waitFunctor, MPI_Comm communicator)
Alternative to the other send() where I trigger a non-blocking send an then invoke the functor until ...
int getSenderRank() const
TreeEntry(ObjectConstruction)
static MPI_Datatype Datatype
Whenever we use LLVM's MPI extension (DaStGe), we rely on lazy initialisation of the datatype.
static void freeJoinDatatype()
static MPI_Datatype getMultiscaleDataExchangeDatatype()
static MPI_Datatype getBoundaryExchangeDatatype()
static void send(const peano4::parallel::TreeEntry &buffer, int destination, int tag, MPI_Comm communicator)
In DaStGen (the first version), I had a non-static version of the send as well as the receive.
static MPI_Datatype getGlobalCommunciationDatatype()