39 #ifndef vtkMPICommunicator_h
40 #define vtkMPICommunicator_h
42 #include "vtkParallelMPIModule.h"
48 class vtkMPICommunicatorOpaqueComm;
49 class vtkMPICommunicatorOpaqueRequest;
50 class vtkMPICommunicatorReceiveDataInfo;
66 vtkMPICommunicatorOpaqueRequest*
Req;
70 void PrintSelf(ostream& os,
vtkIndent indent);
104 int remoteProcessId,
int tag);
106 int remoteProcessId,
int tag);
118 int NoBlockSend(
const int*
data,
int length,
int remoteProcessId,
int tag,
120 int NoBlockSend(
const unsigned long*
data,
int length,
int remoteProcessId,
122 int NoBlockSend(
const char*
data,
int length,
int remoteProcessId,
124 int NoBlockSend(
const unsigned char*
data,
int length,
int remoteProcessId,
126 int NoBlockSend(
const float*
data,
int length,
int remoteProcessId,
128 int NoBlockSend(
const double*
data,
int length,
int remoteProcessId,
130 #ifdef VTK_USE_64BIT_IDS
144 int NoBlockReceive(
int*
data,
int length,
int remoteProcessId,
146 int NoBlockReceive(
unsigned long*
data,
int length,
147 int remoteProcessId,
int tag,
Request& req);
148 int NoBlockReceive(
char*
data,
int length,
int remoteProcessId,
150 int NoBlockReceive(
unsigned char*
data,
int length,
int remoteProcessId,
152 int NoBlockReceive(
float*
data,
int length,
int remoteProcessId,
154 int NoBlockReceive(
double*
data,
int length,
int remoteProcessId,
156 #ifdef VTK_USE_64BIT_IDS
169 virtual void Barrier();
172 virtual int GatherVoidArray(
const void *sendBuffer,
void *recvBuffer,
174 virtual int GatherVVoidArray(
const void *sendBuffer,
void *recvBuffer,
177 virtual int ScatterVoidArray(
const void *sendBuffer,
void *recvBuffer,
179 virtual int ScatterVVoidArray(
const void *sendBuffer,
void *recvBuffer,
183 virtual int AllGatherVoidArray(
const void *sendBuffer,
void *recvBuffer,
185 virtual int AllGatherVVoidArray(
const void *sendBuffer,
void *recvBuffer,
188 virtual int ReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
190 int operation,
int destProcessId);
191 virtual int ReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
193 Operation *operation,
int destProcessId);
194 virtual int AllReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
197 virtual int AllReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
212 int Iprobe(
int source,
int tag,
int* flag,
int* actualSource);
213 int Iprobe(
int source,
int tag,
int* flag,
int* actualSource,
215 int Iprobe(
int source,
int tag,
int* flag,
int* actualSource,
217 int Iprobe(
int source,
int tag,
int* flag,
int* actualSource,
219 int Iprobe(
int source,
int tag,
int* flag,
int* actualSource,
221 int Iprobe(
int source,
int tag,
int* flag,
int* actualSource,
229 int WaitAll(
const int count,
Request requests[]);
236 int WaitAny(
const int count,
Request requests[],
int& idx);
244 const int count,
Request requests[],
int &NCompleted,
int *completed );
251 int TestAll(
const int count,
Request requests[],
int& flag );
256 int TestAny(
const int count,
Request requests[],
int &idx,
int &flag );
264 int TestSome(
const int count,
Request requests[],
265 int& NCompleted,
int *completed);
271 return this->MPIComm;
274 int InitializeExternal(vtkMPICommunicatorOpaqueComm *comm);
276 static char* Allocate(
size_t size);
277 static void Free(
char* ptr);
285 vtkSetClampMacro(UseSsend,
int, 0, 1);
286 vtkGetMacro(UseSsend,
int);
305 int InitializeNumberOfProcesses();
341 virtual int ReceiveDataInternal(
343 int remoteProcessId,
int tag,
344 vtkMPICommunicatorReceiveDataInfo*
info,
345 int useCopy,
int& senderId);
354 static int CheckForMPIError(
int err);
A custom operation to use in a reduce command.
vtkMPICommunicatorOpaqueRequest * Req
static vtkMPICommunicator * WorldCommunicator
Class for creating user defined MPI communicators.
Tests instantiations of the vtkNew class template.
vtkMPICommunicatorOpaqueComm * MPIComm
a simple class to control print indentation
A subgroup of processes from a communicator.
Process communication using MPI.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Used to send/receive messages in a multiprocess environment.
vtkMPICommunicatorOpaqueComm * GetMPIComm()