43#ifndef vtkMultiProcessController_h
44#define vtkMultiProcessController_h
47#include "vtkParallelCoreModule.h"
51VTK_ABI_NAMESPACE_BEGIN
69 void* localArg,
void* remoteArg,
int remoteArgLength,
int remoteProcessId);
82 virtual void Initialize(
int* vtkNotUsed(argc),
char*** vtkNotUsed(argv)) = 0;
90 int* vtkNotUsed(argc),
char*** vtkNotUsed(argv),
int initializedExternally) = 0;
104 virtual void Finalize(
int finalizedExternally) = 0;
233 const std::vector<int>& nodeSizes,
int numberOfGroups);
259 static std::vector<int>
PartitionNodesLPT(
const std::vector<int>& nodeSizes,
int numberOfGroups);
296 vtkErrorMacro(
"RemoveRMI Not Implemented Yet");
321 void TriggerRMI(
int remoteProcessId,
void* arg,
int argLength,
int tag);
332 void TriggerRMI(
int remoteProcessId,
const char* arg,
int tag)
334 this->
TriggerRMI(remoteProcessId, (
void*)arg,
static_cast<int>(strlen(arg)) + 1, tag);
342 this->
TriggerRMI(remoteProcessId,
nullptr, 0, tag);
454 int Send(
const int* data,
vtkIdType length,
int remoteProcessId,
int tag);
455 int Send(
const short* data,
vtkIdType length,
int remoteProcessId,
int tag);
456 int Send(
const unsigned short* data,
vtkIdType length,
int remoteProcessId,
int tag);
457 int Send(
const unsigned int* data,
vtkIdType length,
int remoteProcessId,
int tag);
458 int Send(
const unsigned long* data,
vtkIdType length,
int remoteProcessId,
int tag);
459 int Send(
const long* data,
vtkIdType length,
int remoteProcessId,
int tag);
460 int Send(
const signed char* data,
vtkIdType length,
int remoteProcessId,
int tag);
461 int Send(
const char* data,
vtkIdType length,
int remoteProcessId,
int tag);
462 int Send(
const unsigned char* data,
vtkIdType length,
int remoteProcessId,
int tag);
463 int Send(
const float* data,
vtkIdType length,
int remoteProcessId,
int tag);
464 int Send(
const double* data,
vtkIdType length,
int remoteProcessId,
int tag);
465 int Send(
const long long* data,
vtkIdType length,
int remoteProcessId,
int tag);
466 int Send(
const unsigned long long* data,
vtkIdType length,
int remoteProcessId,
int tag);
491 int Receive(
unsigned int* data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
492 int Receive(
short* data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
493 int Receive(
unsigned short* data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
495 int Receive(
unsigned long* data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
497 int Receive(
unsigned char* data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
498 int Receive(
signed char* data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
499 int Receive(
float* data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
500 int Receive(
double* data,
vtkIdType maxlength,
int remoteProcessId,
int tag);
501 int Receive(
long long* data,
vtkIdType maxLength,
int remoteProcessId,
int tag);
502 int Receive(
unsigned long long* data,
vtkIdType maxLength,
int remoteProcessId,
int tag);
534 return this->
Communicator->Broadcast(data, length, srcProcessId);
538 return this->
Communicator->Broadcast(data, length, srcProcessId);
542 return this->
Communicator->Broadcast(data, length, srcProcessId);
546 return this->
Communicator->Broadcast(data, length, srcProcessId);
550 return this->
Communicator->Broadcast(data, length, srcProcessId);
554 return this->
Communicator->Broadcast(data, length, srcProcessId);
558 return this->
Communicator->Broadcast(data, length, srcProcessId);
562 return this->
Communicator->Broadcast(data, length, srcProcessId);
566 return this->
Communicator->Broadcast(data, length, srcProcessId);
570 return this->
Communicator->Broadcast(data, length, srcProcessId);
574 return this->
Communicator->Broadcast(data, length, srcProcessId);
578 return this->
Communicator->Broadcast(data, length, srcProcessId);
582 return this->
Communicator->Broadcast(data, length, srcProcessId);
586 return this->
Communicator->Broadcast(data, srcProcessId);
590 return this->
Communicator->Broadcast(data, srcProcessId);
596 return this->
Communicator->Broadcast(stream, srcProcessId);
609 int Gather(
const int* sendBuffer,
int* recvBuffer,
vtkIdType length,
int destProcessId)
611 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
614 const unsigned int* sendBuffer,
unsigned int* recvBuffer,
vtkIdType length,
int destProcessId)
616 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
618 int Gather(
const short* sendBuffer,
short* recvBuffer,
vtkIdType length,
int destProcessId)
620 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
622 int Gather(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType length,
625 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
627 int Gather(
const long* sendBuffer,
long* recvBuffer,
vtkIdType length,
int destProcessId)
629 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
632 const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType length,
int destProcessId)
634 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
637 const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType length,
int destProcessId)
639 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
641 int Gather(
const char* sendBuffer,
char* recvBuffer,
vtkIdType length,
int destProcessId)
643 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
646 const signed char* sendBuffer,
signed char* recvBuffer,
vtkIdType length,
int destProcessId)
648 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
650 int Gather(
const float* sendBuffer,
float* recvBuffer,
vtkIdType length,
int destProcessId)
652 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
654 int Gather(
const double* sendBuffer,
double* recvBuffer,
vtkIdType length,
int destProcessId)
656 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
659 const long long* sendBuffer,
long long* recvBuffer,
vtkIdType length,
int destProcessId)
661 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
663 int Gather(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
vtkIdType length,
666 return this->
Communicator->Gather(sendBuffer, recvBuffer, length, destProcessId);
670 return this->
Communicator->Gather(sendBuffer, recvBuffer, destProcessId);
686 return this->
Communicator->Gather(sendBuffer, recvBuffer, destProcessId);
699 std::vector<vtkMultiProcessStream>& recvBuffer,
int destProcessId)
701 return this->
Communicator->Gather(sendBuffer, recvBuffer, destProcessId);
720 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
722 int GatherV(
const unsigned int* sendBuffer,
unsigned int* recvBuffer,
vtkIdType sendLength,
726 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
732 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
734 int GatherV(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType sendLength,
738 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
744 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
746 int GatherV(
const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType sendLength,
750 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
752 int GatherV(
const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType sendLength,
756 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
762 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
768 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
774 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
780 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
786 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
788 int GatherV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
792 sendBuffer, recvBuffer, sendLength, recvLengths, offsets, destProcessId);
799 return this->
Communicator->GatherV(sendBuffer, recvBuffer, recvLengths, offsets, destProcessId);
804 return this->
Communicator->GatherV(sendBuffer, recvBuffer, recvLengths, offsets, destProcessId);
816 return this->
Communicator->GatherV(sendBuffer, recvBuffer, destProcessId);
820 return this->
Communicator->GatherV(sendData, recvData, destProcessId);
834 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
837 const unsigned int* sendBuffer,
unsigned int* recvBuffer,
vtkIdType length,
int srcProcessId)
839 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
841 int Scatter(
const short* sendBuffer,
short* recvBuffer,
vtkIdType length,
int srcProcessId)
843 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
845 int Scatter(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType length,
848 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
852 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
855 const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType length,
int srcProcessId)
857 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
860 const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType length,
int srcProcessId)
862 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
866 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
869 const signed char* sendBuffer,
signed char* recvBuffer,
vtkIdType length,
int srcProcessId)
871 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
873 int Scatter(
const float* sendBuffer,
float* recvBuffer,
vtkIdType length,
int srcProcessId)
875 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
877 int Scatter(
const double* sendBuffer,
double* recvBuffer,
vtkIdType length,
int srcProcessId)
879 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
882 const long long* sendBuffer,
long long* recvBuffer,
vtkIdType length,
int srcProcessId)
884 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
886 int Scatter(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
889 return this->
Communicator->Scatter(sendBuffer, recvBuffer, length, srcProcessId);
893 return this->
Communicator->Scatter(sendBuffer, recvBuffer, srcProcessId);
909 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
915 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
921 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
923 int ScatterV(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType* sendLengths,
927 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
933 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
935 int ScatterV(
const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType* sendLengths,
939 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
941 int ScatterV(
const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType* sendLengths,
945 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
951 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
957 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
963 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
969 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
975 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
977 int ScatterV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
981 sendBuffer, recvBuffer, sendLengths, offsets, recvLength, srcProcessId);
991 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
995 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
999 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1003 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1007 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1011 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1015 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1019 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1023 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1027 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1031 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1035 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1038 const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
vtkIdType length)
1040 return this->
Communicator->AllGather(sendBuffer, recvBuffer, length);
1044 return this->
Communicator->AllGather(sendBuffer, recvBuffer);
1057 return this->
Communicator->AllGather(sendBuffer, recvBuffer);
1070 return this->
Communicator->AllGather(sendBuffer, recvBuffer);
1080 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1085 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1090 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1095 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1100 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1105 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1110 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1115 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1120 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1125 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1130 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1135 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1137 int AllGatherV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
1140 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, sendLength, recvLengths, offsets);
1145 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer, recvLengths, offsets);
1157 return this->
Communicator->AllGatherV(sendBuffer, recvBuffer);
1167 const int* sendBuffer,
int* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1169 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1172 int operation,
int destProcessId)
1174 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1177 const short* sendBuffer,
short* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1179 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1181 int Reduce(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType length,
1182 int operation,
int destProcessId)
1184 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1187 const long* sendBuffer,
long* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1189 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1192 int operation,
int destProcessId)
1194 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1197 int operation,
int destProcessId)
1199 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1202 const char* sendBuffer,
char* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1204 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1207 int operation,
int destProcessId)
1209 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1212 const float* sendBuffer,
float* recvBuffer,
vtkIdType length,
int operation,
int destProcessId)
1214 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1219 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1221 int Reduce(
const long long* sendBuffer,
long long* recvBuffer,
vtkIdType length,
int operation,
1224 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1226 int Reduce(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
vtkIdType length,
1227 int operation,
int destProcessId)
1229 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1233 return this->
Communicator->Reduce(sendBuffer, recvBuffer, operation, destProcessId);
1245 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1250 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1255 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1257 int Reduce(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType length,
1260 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1265 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1270 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1275 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1280 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1285 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1290 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1295 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1300 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1302 int Reduce(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
vtkIdType length,
1305 return this->
Communicator->Reduce(sendBuffer, recvBuffer, length, operation, destProcessId);
1310 return this->
Communicator->Reduce(sendBuffer, recvBuffer, operation, destProcessId);
1320 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1323 const unsigned int* sendBuffer,
unsigned int* recvBuffer,
vtkIdType length,
int operation)
1325 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1329 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1332 const unsigned short* sendBuffer,
unsigned short* recvBuffer,
vtkIdType length,
int operation)
1334 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1338 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1341 const unsigned long* sendBuffer,
unsigned long* recvBuffer,
vtkIdType length,
int operation)
1343 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1346 const unsigned char* sendBuffer,
unsigned char* recvBuffer,
vtkIdType length,
int operation)
1348 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1352 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1355 const signed char* sendBuffer,
signed char* recvBuffer,
vtkIdType length,
int operation)
1357 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1361 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1365 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1369 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1371 int AllReduce(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
1374 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1378 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, operation);
1385 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1390 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1395 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1400 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1405 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1410 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1415 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1420 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1425 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1430 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1435 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1440 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1442 int AllReduce(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
1445 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, length, operation);
1450 return this->
Communicator->AllReduce(sendBuffer, recvBuffer, operation);
1502 int remoteProcessId,
void* arg,
int argLength,
int rmiTag,
bool propagate);
1513 void ProcessRMI(
int remoteProcessId,
void* arg,
int argLength,
int rmiTag);
1547 unsigned long RMICount;
1550 vtkInternal* Internal;
1557 return this->
Communicator->Send(data, remoteProcessId, tag);
1569 return this->
Communicator->Send(data, remoteProcessId, tag);
1578 const int* data,
vtkIdType length,
int remoteProcessId,
int tag)
1582 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1591 const short* data,
vtkIdType length,
int remoteProcessId,
int tag)
1595 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1604 const unsigned short* data,
vtkIdType length,
int remoteProcessId,
int tag)
1608 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1617 const unsigned int* data,
vtkIdType length,
int remoteProcessId,
int tag)
1621 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1630 const unsigned long* data,
vtkIdType length,
int remoteProcessId,
int tag)
1634 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1643 const long* data,
vtkIdType length,
int remoteProcessId,
int tag)
1647 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1656 const signed char* data,
vtkIdType length,
int remoteProcessId,
int tag)
1660 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1669 const char* data,
vtkIdType length,
int remoteProcessId,
int tag)
1673 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1682 const unsigned char* data,
vtkIdType length,
int remoteProcessId,
int tag)
1686 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1695 const float* data,
vtkIdType length,
int remoteProcessId,
int tag)
1699 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1708 const double* data,
vtkIdType length,
int remoteProcessId,
int tag)
1712 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1721 const long long* data,
vtkIdType length,
int remoteProcessId,
int tag)
1725 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1734 const unsigned long long* data,
vtkIdType length,
int remoteProcessId,
int tag)
1738 return this->
Communicator->Send(data, length, remoteProcessId, tag);
1751 return this->
Communicator->Send(stream, remoteId, tag);
1760 return this->
Communicator->Receive(data, remoteProcessId, tag);
1772 return this->
Communicator->ReceiveDataObject(remoteProcessId, tag);
1784 return this->
Communicator->Receive(data, remoteProcessId, tag);
1793 int* data,
vtkIdType length,
int remoteProcessId,
int tag)
1797 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1806 unsigned int* data,
vtkIdType length,
int remoteProcessId,
int tag)
1810 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1819 short* data,
vtkIdType length,
int remoteProcessId,
int tag)
1823 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1832 unsigned short* data,
vtkIdType length,
int remoteProcessId,
int tag)
1836 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1845 long* data,
vtkIdType length,
int remoteProcessId,
int tag)
1849 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1858 unsigned long* data,
vtkIdType length,
int remoteProcessId,
int tag)
1862 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1871 char* data,
vtkIdType length,
int remoteProcessId,
int tag)
1875 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1884 unsigned char* data,
vtkIdType length,
int remoteProcessId,
int tag)
1888 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1897 signed char* data,
vtkIdType length,
int remoteProcessId,
int tag)
1901 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1910 float* data,
vtkIdType length,
int remoteProcessId,
int tag)
1914 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1923 double* data,
vtkIdType length,
int remoteProcessId,
int tag)
1927 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1936 long long* data,
vtkIdType length,
int remoteProcessId,
int tag)
1940 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1949 unsigned long long* data,
vtkIdType length,
int remoteProcessId,
int tag)
1953 return this->
Communicator->Receive(data, length, remoteProcessId, tag);
1965 return this->
Communicator->Receive(stream, remoteId, tag);
1987VTK_ABI_NAMESPACE_END
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.
Store on/off settings for data arrays, etc.
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.
virtual vtkMultiProcessController * PartitionControllerByCount(int numberOfGroups)
Partitions this controller's processes into numberOfGroups groups and returns a new controller repres...
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 std::vector< int > PartitionNodesLPT(const std::vector< int > &nodeSizes, int numberOfGroups)
Assigns each of nodeSizes.size() groupings of processes (e.g.
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.
static int BlockDistribute(int position, int count, int numberOfGroups)
Assigns position (0-indexed) to one of numberOfGroups contiguous blocks of count total positions,...
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().
static std::vector< int > ApportionGroupSlots(const std::vector< int > &nodeSizes, int numberOfGroups)
Apportions numberOfGroups "slots" (each slot corresponds to one group) across nodeSizes....
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.
virtual bool CanProbe()
Check if this controller implements a probe operation.
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.
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.
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.
virtual void Initialize(int *argc, char ***argv, int initializedExternally)=0
This method is for setting up the 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.
virtual void Initialize(int *argc, char ***argv)=0
This method is for setting up the processes.
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.
virtual int Probe(int source, int tag, int *actualSource)
Blocking test for checking for a message tagged with tag from source process (if source == ANY_SOURCE...
stream used to pass data across processes using vtkMultiProcessController.
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
Hold a reference to a vtkObjectBase instance.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void(* vtkProcessFunctionType)(vtkMultiProcessController *controller, void *userData)
void(* vtkRMIFunctionType)(void *localArg, void *remoteArg, int remoteArgLength, int remoteProcessId)