#include <vtkMPICommunicator.h>
Inheritance diagram for vtkMPICommunicator:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
int | Initialize (vtkMPICommunicator *mpiComm, vtkMPIGroup *group) |
virtual int | Send (int *data, int length, int remoteProcessId, int tag) |
virtual int | Send (unsigned long *data, int length, int remoteProcessId, int tag) |
virtual int | Send (char *data, int length, int remoteProcessId, int tag) |
virtual int | Send (unsigned char *data, int length, int remoteProcessId, int tag) |
virtual int | Send (float *data, int length, int remoteProcessId, int tag) |
virtual int | Send (double *data, int length, int remoteProcessId, int tag) |
virtual int | Send (vtkDataObject *data, int remoteProcessId, int tag) |
virtual int | Send (vtkDataArray *data, int remoteProcessId, int tag) |
int | NoBlockSend (int *data, int length, int remoteProcessId, int tag, Request &req) |
int | NoBlockSend (unsigned long *data, int length, int remoteProcessId, int tag, Request &req) |
int | NoBlockSend (char *data, int length, int remoteProcessId, int tag, Request &req) |
int | NoBlockSend (float *data, int length, int remoteProcessId, int tag, Request &req) |
virtual int | Receive (int *data, int length, int remoteProcessId, int tag) |
virtual int | Receive (unsigned long *data, int length, int remoteProcessId, int tag) |
virtual int | Receive (char *data, int length, int remoteProcessId, int tag) |
virtual int | Receive (unsigned char *data, int length, int remoteProcessId, int tag) |
virtual int | Receive (float *data, int length, int remoteProcessId, int tag) |
virtual int | Receive (double *data, int length, int remoteProcessId, int tag) |
virtual int | Receive (vtkDataObject *data, int remoteProcessId, int tag) |
virtual int | Receive (vtkDataArray *data, int remoteProcessId, int tag) |
int | NoBlockReceive (int *data, int length, int remoteProcessId, int tag, Request &req) |
int | NoBlockReceive (unsigned long *data, int length, int remoteProcessId, int tag, Request &req) |
int | NoBlockReceive (char *data, int length, int remoteProcessId, int tag, Request &req) |
int | NoBlockReceive (float *data, int length, int remoteProcessId, int tag, Request &req) |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkMPICommunicator * | SafeDownCast (vtkObject *o) |
vtkMPICommunicator * | New () |
vtkMPICommunicator * | GetWorldCommunicator () |
Protected Methods | |
virtual void | SetGroup (vtkMPIGroup *) |
void | InitializeCopy (vtkMPICommunicator *source) |
void | CopyFrom (vtkMPICommunicator *source) |
void | Duplicate (vtkMPICommunicator *source) |
vtkMPICommunicator () | |
~vtkMPICommunicator () | |
virtual void | SetKeepHandle (int) |
virtual void | KeepHandleOn () |
virtual void | KeepHandleOff () |
Protected Attributes | |
MPI_Comm * | Handle |
vtkMPIGroup * | Group |
int | Initialized |
int | KeepHandle |
Static Protected Attributes | |
vtkMPICommunicator * | WorldCommunicator |
Friends | |
class | vtkMPIController |
This class can be used to create user defined MPI communicators. The actual creation (with MPI_Comm_create) occurs in Initialize which takes as arguments a super-communicator and a group of process ids. The new communicator is created by including the processes contained in the group. The global communicator (equivalent to MPI_COMM_WORLD) can be obtained using the class method GetWorldCommunicator. It is important to note that this communicator should not be used on the processes not contained in the group. For example, if the group contains processes 0 and 1, controller->SetCommunicator(communicator) would cause an MPI error on any other process.
Definition at line 75 of file vtkMPICommunicator.h.
|
|
|
|
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkCommunicator. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkCommunicator. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkCommunicator. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkCommunicator. |
|
Creates an empty communicator. Reimplemented from vtkObject. |
|
Returns the singleton which behaves as the global communicator (MPI_COMM_WORLD) |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkCommunicator. |
|
Used to initialize (i.e. create the underlying MPI_Comm) the communicator. Note that group is also stored in an instance variable (the reference count of group is increased by 1). group->Delete() can be safely invoked after this. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. Definition at line 114 of file vtkMPICommunicator.h. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. Definition at line 116 of file vtkMPICommunicator.h. |
|
This method sends data to another process (non-blocking). Tag eliminates ambiguity when multiple sends or receives exist in the same process. The last argument, vtkMPICommunicator::Request& req can later be used (with req.Test() ) to test the success of the message. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. Reimplemented from vtkCommunicator. Definition at line 167 of file vtkMPICommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. Reimplemented from vtkCommunicator. Definition at line 169 of file vtkMPICommunicator.h. |
|
This method receives data from a corresponding send (non-blocking). The last argument, vtkMPICommunicator::Request& req can later be used (with req.Test() ) to test the success of the message. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. |
|
|
|
KeepHandle is normally off. This means that the MPI communicator handle will be freed at the destruction of the object. However, if the handle was copied from another object (via CopyFrom() not Duplicate()), this has to be turned on otherwise the handle will be freed multiple times causing MPI failure. The alternative to this is using reference counting but it is unnecessarily complicated for this case. |
|
KeepHandle is normally off. This means that the MPI communicator handle will be freed at the destruction of the object. However, if the handle was copied from another object (via CopyFrom() not Duplicate()), this has to be turned on otherwise the handle will be freed multiple times causing MPI failure. The alternative to this is using reference counting but it is unnecessarily complicated for this case. |
|
KeepHandle is normally off. This means that the MPI communicator handle will be freed at the destruction of the object. However, if the handle was copied from another object (via CopyFrom() not Duplicate()), this has to be turned on otherwise the handle will be freed multiple times causing MPI failure. The alternative to this is using reference counting but it is unnecessarily complicated for this case. |
|
|
|
Copies all the attributes of source, deleting previously stored data. The MPI communicator handle is also copied. Normally, this should not be needed. It is used during the construction of a new communicator for copying the world communicator, keeping the same context. |
|
Copies all the attributes of source, deleting previously stored data EXCEPT the MPI communicator handle which is duplicated with MPI_Comm_dup(). Therefore, although the processes in the communicator remain the same, a new context is created. This prevents the two communicators from intefering with each other during message send/receives even if the tags are the same. |
|
Definition at line 188 of file vtkMPICommunicator.h. |
|
Definition at line 208 of file vtkMPICommunicator.h. |
|
Definition at line 226 of file vtkMPICommunicator.h. |
|
Definition at line 227 of file vtkMPICommunicator.h. |
|
Definition at line 229 of file vtkMPICommunicator.h. |
|
Definition at line 230 of file vtkMPICommunicator.h. |