49#ifndef vtkMultiProcessController_h
50#define vtkMultiProcessController_h
53#include "vtkParallelCoreModule.h"
74 void* localArg,
void* remoteArg,
int remoteArgLength,
int remoteProcessId);
87 virtual void Initialize(
int* vtkNotUsed(argc),
char*** vtkNotUsed(argv)) = 0;
95 int* vtkNotUsed(argc),
char*** vtkNotUsed(argv),
int initializedExternally) = 0;
109 virtual void Finalize(
int finalizedExternally) = 0;
238 vtkErrorMacro(
"RemoveRMI Not Implemented Yet");
263 void TriggerRMI(
int remoteProcessId,
void* arg,
int argLength,
int tag);
274 void TriggerRMI(
int remoteProcessId,
const char* arg,
int tag)
276 this->TriggerRMI(remoteProcessId, (
void*)arg,
static_cast<int>(strlen(arg)) + 1, tag);
284 this->TriggerRMI(remoteProcessId,
nullptr, 0, tag);
299 this->TriggerRMIOnAllChildren((
void*)arg,
static_cast<int>(strlen(arg)) + 1, tag);
328 vtkSetMacro(BreakFlag,
int);
329 vtkGetMacro(BreakFlag,
int);
338 vtkSetMacro(BroadcastTriggerRMI,
bool);
339 vtkGetMacro(BroadcastTriggerRMI,
bool);
340 vtkBooleanMacro(BroadcastTriggerRMI,
bool);
376 XML_WRITER_DATA_INFO = 4
432 int Receive(
int*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
433 int Receive(
unsigned int*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
434 int Receive(
short*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
435 int Receive(
unsigned short*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
436 int Receive(
long*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
437 int Receive(
unsigned long*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
438 int Receive(
char*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
439 int Receive(
unsigned char*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
440 int Receive(
signed char*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
441 int Receive(
float*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
442 int Receive(
double*
data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
443 int Receive(
long long*
data,
vtkIdType maxLength,
int remoteProcessId,
int tag);
444 int Receive(
unsigned long long*
data,
vtkIdType maxLength,
int remoteProcessId,
int tag);
476 return this->Communicator->Broadcast(
data,
length, srcProcessId);
480 return this->Communicator->Broadcast(
data,
length, srcProcessId);
484 return this->Communicator->Broadcast(
data,
length, srcProcessId);
488 return this->Communicator->Broadcast(
data,
length, srcProcessId);
492 return this->Communicator->Broadcast(
data,
length, srcProcessId);
496 return this->Communicator->Broadcast(
data,
length, srcProcessId);
500 return this->Communicator->Broadcast(
data,
length, srcProcessId);
504 return this->Communicator->Broadcast(
data,
length, srcProcessId);
508 return this->Communicator->Broadcast(
data,
length, srcProcessId);
512 return this->Communicator->Broadcast(
data,
length, srcProcessId);
516 return this->Communicator->Broadcast(
data,
length, srcProcessId);
520 return this->Communicator->Broadcast(
data,
length, srcProcessId);
524 return this->Communicator->Broadcast(
data,
length, srcProcessId);
528 return this->Communicator->Broadcast(
data, srcProcessId);
532 return this->Communicator->Broadcast(
data, srcProcessId);
538 return this->Communicator->Broadcast(stream, srcProcessId);
553 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
556 const unsigned int* sendBuffer,
unsigned int* recvBuffer,
vtkIdType length,
int destProcessId)
558 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
562 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
567 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
571 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
574 const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType length,
int destProcessId)
576 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
579 const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType length,
int destProcessId)
581 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
585 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
588 const signed char* sendBuffer,
signed char* recvBuffer,
vtkIdType length,
int destProcessId)
590 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
594 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
598 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
601 const long long* sendBuffer,
long long* recvBuffer,
vtkIdType length,
int destProcessId)
603 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
608 return this->Communicator->Gather(sendBuffer, recvBuffer,
length, destProcessId);
612 return this->Communicator->Gather(sendBuffer, recvBuffer, destProcessId);
628 return this->Communicator->Gather(sendBuffer, recvBuffer, destProcessId);
641 std::vector<vtkMultiProcessStream>& recvBuffer,
int destProcessId)
643 return this->Communicator->Gather(sendBuffer, recvBuffer, destProcessId);
661 return this->Communicator->GatherV(
662 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
664 int GatherV(
const unsigned int* sendBuffer,
unsigned int* recvBuffer,
vtkIdType sendLength,
667 return this->Communicator->GatherV(
668 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
673 return this->Communicator->GatherV(
674 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
676 int GatherV(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType sendLength,
679 return this->Communicator->GatherV(
680 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
685 return this->Communicator->GatherV(
686 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
688 int GatherV(
const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType sendLength,
691 return this->Communicator->GatherV(
692 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
694 int GatherV(
const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType sendLength,
697 return this->Communicator->GatherV(
698 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
703 return this->Communicator->GatherV(
704 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
709 return this->Communicator->GatherV(
710 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
715 return this->Communicator->GatherV(
716 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
721 return this->Communicator->GatherV(
722 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
727 return this->Communicator->GatherV(
728 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
730 int GatherV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
733 return this->Communicator->GatherV(
734 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
741 return this->Communicator->GatherV(sendBuffer, recvBuffer, recvLengths, offsets, destProcessId);
746 return this->Communicator->GatherV(sendBuffer, recvBuffer, recvLengths, offsets, destProcessId);
758 return this->Communicator->GatherV(sendBuffer, recvBuffer, destProcessId);
762 return this->Communicator->GatherV(sendData, recvData, destProcessId);
776 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
779 const unsigned int* sendBuffer,
unsigned int* recvBuffer,
vtkIdType length,
int srcProcessId)
781 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
785 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
790 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
794 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
797 const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType length,
int srcProcessId)
799 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
802 const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType length,
int srcProcessId)
804 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
808 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
811 const signed char* sendBuffer,
signed char* recvBuffer,
vtkIdType length,
int srcProcessId)
813 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
817 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
821 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
824 const long long* sendBuffer,
long long* recvBuffer,
vtkIdType length,
int srcProcessId)
826 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
828 int Scatter(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
831 return this->Communicator->Scatter(sendBuffer, recvBuffer,
length, srcProcessId);
835 return this->Communicator->Scatter(sendBuffer, recvBuffer, srcProcessId);
850 return this->Communicator->ScatterV(
851 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
856 return this->Communicator->ScatterV(
857 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
862 return this->Communicator->ScatterV(
863 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
865 int ScatterV(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType* sendLengths,
868 return this->Communicator->ScatterV(
869 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
874 return this->Communicator->ScatterV(
875 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
877 int ScatterV(
const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType* sendLengths,
880 return this->Communicator->ScatterV(
881 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
883 int ScatterV(
const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType* sendLengths,
886 return this->Communicator->ScatterV(
887 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
892 return this->Communicator->ScatterV(
893 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
898 return this->Communicator->ScatterV(
899 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
904 return this->Communicator->ScatterV(
905 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
910 return this->Communicator->ScatterV(
911 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
916 return this->Communicator->ScatterV(
917 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
919 int ScatterV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
922 return this->Communicator->ScatterV(
923 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
933 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
937 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
941 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
945 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
949 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
953 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
957 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
961 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
965 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
969 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
973 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
977 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
980 const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
vtkIdType length)
982 return this->Communicator->AllGather(sendBuffer, recvBuffer,
length);
986 return this->Communicator->AllGather(sendBuffer, recvBuffer);
999 return this->Communicator->AllGather(sendBuffer, recvBuffer);
1012 return this->Communicator->AllGather(sendBuffer, recvBuffer);
1022 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1027 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1032 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1037 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1042 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1047 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1052 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1057 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1062 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1067 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1072 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1077 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1079 int AllGatherV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
1082 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1087 return this->Communicator->AllGatherV(sendBuffer, recvBuffer, recvLengths, offsets);
1099 return this->Communicator->AllGatherV(sendBuffer, recvBuffer);
1109 const int* sendBuffer,
int* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1111 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1114 int operation,
int destProcessId)
1116 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1119 const short* sendBuffer,
short* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1121 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1124 int operation,
int destProcessId)
1126 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1129 const long* sendBuffer,
long* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1131 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1134 int operation,
int destProcessId)
1136 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1139 int operation,
int destProcessId)
1141 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1144 const char* sendBuffer,
char* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1146 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1149 int operation,
int destProcessId)
1151 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1154 const float* sendBuffer,
float* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1156 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1161 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1166 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1169 int operation,
int destProcessId)
1171 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1175 return this->Communicator->Reduce(sendBuffer, recvBuffer, operation, destProcessId);
1187 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1192 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1197 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1202 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1207 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1212 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1217 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1222 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1227 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1232 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1237 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1242 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1247 return this->Communicator->Reduce(sendBuffer, recvBuffer,
length, operation, destProcessId);
1252 return this->Communicator->Reduce(sendBuffer, recvBuffer, operation, destProcessId);
1262 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1265 const unsigned int* sendBuffer,
unsigned int* recvBuffer,
vtkIdType length,
int operation)
1267 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1271 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1274 const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType length,
int operation)
1276 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1280 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1283 const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType length,
int operation)
1285 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1288 const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType length,
int operation)
1290 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1294 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1297 const signed char* sendBuffer,
signed char* recvBuffer,
vtkIdType length,
int operation)
1299 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1303 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1307 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1311 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1313 int AllReduce(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
1316 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1320 return this->Communicator->AllReduce(sendBuffer, recvBuffer, operation);
1327 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1332 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1337 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1342 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1347 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1352 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1357 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1362 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1367 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1372 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1377 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1382 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1384 int AllReduce(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
1387 return this->Communicator->AllReduce(sendBuffer, recvBuffer,
length, operation);
1392 return this->Communicator->AllReduce(sendBuffer, recvBuffer, operation);
1424 int remoteProcessId,
void* arg,
int argLength,
int rmiTag,
bool propagate);
1435 void ProcessRMI(
int remoteProcessId,
void* arg,
int argLength,
int rmiTag);
1469 unsigned long RMICount;
1472 vtkInternal* Internal;
Fast, simple class for representing and operating on 3D bounds.
create and manipulate ordered lists of objects
A custom operation to use in a reduce command.
Used to send/receive messages in a multiprocess environment.
virtual void Barrier()
Will block the processes until all other processes reach the Barrier function.
int Send(vtkDataObject *data, int remoteHandle, int tag)
This method sends a data object to a destination.
int Receive(vtkDataObject *data, int remoteHandle, int tag)
This method receives a data object from a corresponding send.
vtkDataObject * ReceiveDataObject(int remoteHandle, int tag)
The caller does not have to know the data type before this call is made.
virtual vtkIdType GetCount()
Returns the number of words received by the most recent Receive().
Store on/off settings for data arrays for a vtkSource.
abstract superclass for arrays of numeric data
general representation of visualization data
abstract class to specify dataset behavior
dynamic, self-adjusting array of vtkIdType
topologically and geometrically regular array of data
a simple class to control print indentation
Multiprocessing communication superclass.
int Gather(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
void TriggerBreakRMIs()
A convenience method.
void TriggerRMI(int remoteProcessId, const char *arg, int tag)
Convenience method when the arg is a string.
vtkDataObject * ReceiveDataObject(int remoteId, int tag)
vtkIdType GetCount()
Returns the number of words received by the most recent Receive().
int GatherV(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int Reduce(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int AllGatherV(const short *sendBuffer, short *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int Reduce(const double *sendBuffer, double *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int Broadcast(vtkMultiProcessStream &stream, int srcProcessId)
int AllReduce(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int Gather(const short *sendBuffer, short *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
virtual unsigned long AddRMI(vtkRMIFunctionType, void *localArg, int tag)
Register remote method invocation in the receiving process which makes the call.
int Send(const int *data, vtkIdType length, int remoteProcessId, int tag)
This method sends data to another process.
void TriggerRMIOnAllChildren(void *arg, int argLength, int tag)
This is a convenicence method to trigger an RMI call on all the "children" of the current node.
int Broadcast(long long *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int GetNumberOfProcesses()
Set the number of processes you will be using.
int Scatter(const short *sendBuffer, short *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int AllGather(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int AllGatherV(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
virtual int RemoveFirstRMI(int tag)
Remove the first RMI matching the tag.
int Gather(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
int Scatter(const double *sendBuffer, double *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int AllGatherV(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int GatherV(const char *sendBuffer, char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int AllGatherV(const int *sendBuffer, int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int Scatter(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int Broadcast(vtkDataArray *data, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int GatherV(const long long *sendBuffer, long long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int Reduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
static void SetGlobalController(vtkMultiProcessController *controller)
int GatherV(const double *sendBuffer, double *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int AllReduce(const vtkBoundingBox &sendBuffer, vtkBoundingBox &recvBuffer)
Convenience methods to reduce bounds.
int AllReduce(const char *sendBuffer, char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int Reduce(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int Broadcast(vtkDataObject *data, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int Reduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int AllGather(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int AllReduce(const long *sendBuffer, long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
static vtkMultiProcessController * GetGlobalController()
This convenience method returns the controller associated with the local process.
int AllGatherV(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
virtual void RemoveRMI(vtkRMIFunctionType f, void *arg, int tag)
Take an RMI away.
int AllGather(const long long *sendBuffer, long long *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int ScatterV(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int ProcessRMIs(int reportErrors, int dont_loop=0)
Calling this method gives control to the controller to start processing RMIs.
int ScatterV(const long *sendBuffer, long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int AllGather(const char *sendBuffer, char *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int AllGatherV(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int AllGatherV(const char *sendBuffer, char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int Scatter(const long *sendBuffer, long *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int Broadcast(short *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int Gather(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
int Scatter(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
void SetMultipleMethod(int index, vtkProcessFunctionType, void *data)
Set the MultipleMethod to f() and the UserData of the for the method to be executed by the process in...
vtkOutputWindow * OutputWindow
int AllReduce(vtkDataArraySelection *sendBuffer, vtkDataArraySelection *recvBuffer)
Convenience methods to reduce vtkDataArraySelection.
virtual void TriggerRMIInternal(int remoteProcessId, void *arg, int argLength, int rmiTag, bool propagate)
Implementation for TriggerRMI() provides subclasses an opportunity to modify the behaviour eg.
int Reduce(vtkDataArraySelection *sendBuffer, vtkDataArraySelection *recvBuffer, int destProcessId)
Convenience methods to reduce vtkDataArraySelection.
int Reduce(const int *sendBuffer, int *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int AllGather(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int AllReduce(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
void SetSingleProcessObject(vtkProcess *p)
Object-oriented flavor of SetSingleMethod().
int AllReduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation)
Same as Reduce except that the result is placed in all of the processes.
int Scatter(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int Gather(const float *sendBuffer, float *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
int AllGather(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
virtual void RemoveAllRMICallbacks(int tag)
These methods are a part of the newer API to add multiple rmi callbacks.
int Broadcast(double *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int Scatter(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int AllGatherV(const long long *sendBuffer, long long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int AllGather(const float *sendBuffer, float *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int Reduce(const short *sendBuffer, short *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
static int GetBreakRMITag()
Accessor to some default tags.
int Scatter(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
virtual vtkMultiProcessController * CreateSubController(vtkProcessGroup *group)
Creates a new controller with the processes specified by the given group.
int AllReduce(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int AllReduce(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int Gather(const long *sendBuffer, long *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
int Reduce(const long *sendBuffer, long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
vtkCommunicator * RMICommunicator
int Gather(const int *sendBuffer, int *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
virtual void SingleMethodExecute()=0
Execute the SingleMethod (as define by SetSingleMethod) using this->NumberOfProcesses processes.
int GatherV(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int Reduce(const float *sendBuffer, float *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int AllReduce(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int Broadcast(float *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int AllReduce(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int Gather(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
int ScatterV(const double *sendBuffer, double *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int AllGatherV(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int AllReduce(const long *sendBuffer, long *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int AllReduce(const double *sendBuffer, double *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
virtual vtkMultiProcessController * PartitionController(int localColor, int localKey)
Partitions this controller based on a coloring.
vtkCommunicator * Communicator
int AllGatherV(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int Broadcast(unsigned long long *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
void BroadcastTriggerRMIOnAllChildren(void *arg, int argLength, int tag)
This is a convenicence method to trigger an RMI call on all the "children" of the current node.
int Broadcast(long *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int AllGatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer)
This special form of AllGatherV will automatically determine recvLengths and offsets to tightly pack ...
virtual vtkMultiProcessController * GetLocalController()
void TriggerRMI(int remoteProcessId, int tag)
Convenience method when there is no argument.
int Reduce(const double *sendBuffer, double *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int Gather(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
virtual void Initialize(int *vtkNotUsed(argc), char ***vtkNotUsed(argv))=0
This method is for setting up the processes.
static int GetRMIArgTag()
int AllGather(const double *sendBuffer, double *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int AllGather(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer)
Same as gather except that the result ends up on all processes.
int AllReduce(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int Broadcast(unsigned int *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int AllReduce(const char *sendBuffer, char *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int Reduce(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
virtual void Initialize(int *vtkNotUsed(argc), char ***vtkNotUsed(argv), int initializedExternally)=0
This method is for setting up the processes.
void Barrier()
This method can be used to synchronize processes.
int Gather(const double *sendBuffer, double *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
int AllReduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkCommunicator::Operation *operation)
int Broadcast(unsigned char *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int Broadcast(int *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int Broadcast(unsigned long *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int AllReduce(const float *sendBuffer, float *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int AllReduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int ScatterV(const float *sendBuffer, float *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
void TriggerRMIOnAllChildren(const char *arg, int tag)
This is a convenicence method to trigger an RMI call on all the "children" of the current node.
int AllGather(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
~vtkMultiProcessController() override
int BroadcastProcessRMIs(int reportErrors, int dont_loop=0)
Calling this method gives control to the controller to start processing RMIs.
int AllReduce(const int *sendBuffer, int *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int AllGather(vtkDataObject *sendBuffer, std::vector< vtkSmartPointer< vtkDataObject > > &recvBuffer)
Gathers vtkDataObject (sendBuffer) from all ranks to all raks.
int AllReduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int ScatterV(const char *sendBuffer, char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int ScatterV(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
virtual void Finalize(int finalizedExternally)=0
This method is for cleaning up.
int Reduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation, int destProcessId)
Reduce an array to the given destination process.
int Reduce(const long *sendBuffer, long *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int AllReduce(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int GatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int Reduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int Reduce(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int GatherV(const int *sendBuffer, int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int Broadcast(signed char *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
void SetNumberOfProcesses(int num)
Set the number of processes you will be using.
int GatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkIdTypeArray *recvLengths, vtkIdTypeArray *offsets, int destProcessId)
virtual int RemoveRMI(unsigned long id)
Remove the RMI matching the id.
int Reduce(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int AllReduce(const double *sendBuffer, double *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int GetLocalProcessId()
Tells you which process [0, NumProcess) you are in.
int AllReduce(const short *sendBuffer, short *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
int AllGather(const vtkMultiProcessStream &sendBuffer, std::vector< vtkMultiProcessStream > &recvBuffer)
Gathers vtkMultiProcessStream (sendBuffer) from all ranks to the destProcessId.
void ProcessRMI(int remoteProcessId, void *arg, int argLength, int rmiTag)
int ScatterV(const long long *sendBuffer, long long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int ScatterV(const short *sendBuffer, short *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int Scatter(const float *sendBuffer, float *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int Reduce(const vtkBoundingBox &sendBuffer, vtkBoundingBox &recvBuffer, int destProcessId)
Convenience methods to reduce bounds.
int GatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int destProcessId)
This special form of GatherV will automatically determine recvLengths and offsets to tightly pack the...
int AllGather(const short *sendBuffer, short *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int AllGatherV(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int Gather(const char *sendBuffer, char *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
int Gather(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
void SetSingleMethod(vtkProcessFunctionType, void *data)
Set the SingleMethod to f() and the UserData of the for the method to be executed by all of the proce...
int GatherV(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int GatherV(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int Reduce(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
void TriggerRMIOnAllChildren(int tag)
This is a convenicence method to trigger an RMI call on all the "children" of the current node.
int AllGatherV(const double *sendBuffer, double *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int Gather(vtkDataObject *sendBuffer, std::vector< vtkSmartPointer< vtkDataObject > > &recvBuffer, int destProcessId)
Gathers vtkDataObject (sendBuffer) from all ranks to the destProcessId.
int Reduce(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int Receive(int *data, vtkIdType maxlength, int remoteProcessId, int tag)
This method receives data from a corresponding send.
int GatherV(const float *sendBuffer, float *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int GatherV(const long *sendBuffer, long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int AllReduce(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
virtual void MultipleMethodExecute()=0
Execute the MultipleMethods (as define by calling SetMultipleMethod for each of the required this->Nu...
int AllGatherV(const long *sendBuffer, long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int Reduce(const float *sendBuffer, float *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
void GetMultipleMethod(int index, vtkProcessFunctionType &func, void *&data)
int AllReduce(const short *sendBuffer, short *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
vtkMultiProcessController()
int Broadcast(char *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int AllGatherV(const float *sendBuffer, float *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
Same as GatherV except that the result is placed in all processes.
int GatherV(const short *sendBuffer, short *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int Broadcast(unsigned short *data, vtkIdType length, int srcProcessId)
Broadcast sends the array in the process with id srcProcessId to all of the other processes.
int Gather(vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int destProcessId)
Gather collects arrays in the process with id destProcessId.
virtual unsigned long AddRMICallback(vtkRMIFunctionType, void *localArg, int tag)
These methods are a part of the newer API to add multiple rmi callbacks.
int AllReduce(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int AllGather(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int Gather(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int destProcessId)
Gather collects arrays in the process with id destProcessId.
int Reduce(const char *sendBuffer, char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int ScatterV(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int Scatter(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int Reduce(const short *sendBuffer, short *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
vtkProcessFunctionType SingleMethod
int Scatter(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int AllGather(const int *sendBuffer, int *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int ScatterV(const int *sendBuffer, int *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int AllReduce(const float *sendBuffer, float *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
void TriggerRMI(int remoteProcessId, void *arg, int argLength, int tag)
A method to trigger a method invocation in another process.
int GatherV(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int Scatter(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int ScatterV(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int AllReduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
virtual void CreateOutputWindow()=0
This method can be used to tell the controller to create a special output window in which all message...
int GatherV(vtkDataObject *sendData, vtkSmartPointer< vtkDataObject > *recvData, int destProcessId)
This special form of GatherV will automatically determine recvLengths and offsets to tightly pack the...
int AllReduce(const int *sendBuffer, int *recvBuffer, vtkIdType length, int operation)
Same as Reduce except that the result is placed in all of the processes.
virtual void Finalize()=0
This method is for cleaning up.
int ScatterV(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
int GatherV(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
GatherV is the vector variant of Gather.
int Reduce(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int ProcessRMIs()
Calling this method gives control to the controller to start processing RMIs.
int AllReduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation)
int Scatter(const char *sendBuffer, char *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int Scatter(const int *sendBuffer, int *recvBuffer, vtkIdType length, int srcProcessId)
Scatter takes an array in the process with id srcProcessId and distributes it.
int Gather(const vtkMultiProcessStream &sendBuffer, std::vector< vtkMultiProcessStream > &recvBuffer, int destProcessId)
Gathers vtkMultiProcessStream (sendBuffer) from all ranks to the destProcessId.
int Reduce(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int Reduce(const int *sendBuffer, int *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId)
Reduce an array to the given destination process.
int Reduce(const char *sendBuffer, char *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int Reduce(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int Reduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
virtual bool RemoveRMICallback(unsigned long id)
Remove a callback.
int AllGather(const long *sendBuffer, long *recvBuffer, vtkIdType length)
Same as gather except that the result ends up on all processes.
int Reduce(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, int operation, int destProcessId)
Reduce an array to the given destination process.
int ScatterV(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
ScatterV is the vector variant of Scatter.
stream used to pass data across processes using vtkMultiProcessController.
abstract base class for most VTK objects
base class for writing debug output to a console
A subgroup of processes from a communicator.
a process that can be launched by a vtkMultiProcessController
void(* vtkProcessFunctionType)(vtkMultiProcessController *controller, void *userData)
void(* vtkRMIFunctionType)(void *localArg, void *remoteArg, int remoteArgLength, int remoteProcessId)