34 #ifndef vtkCommunicator_h
35 #define vtkCommunicator_h
63 virtual void SetNumberOfProcesses(
int num);
64 vtkGetMacro(NumberOfProcesses,
int);
69 vtkGetMacro(LocalProcessId,
int);
122 virtual int Commutative() = 0;
143 int remoteHandle,
int tag) = 0;
149 return this->SendVoidArray(data, length,
VTK_INT, remoteHandle, tag);
152 return this->SendVoidArray(data, length,
VTK_INT, remoteHandle, tag);
155 return this->SendVoidArray(data, length,
VTK_SHORT, remoteHandle, tag);
161 int remoteHandle,
int tag) {
162 return this->SendVoidArray(data, length,
VTK_LONG,remoteHandle,tag);
165 int remoteHandle,
int tag) {
169 int remoteHandle,
int tag) {
173 return this->SendVoidArray(data, length,
VTK_CHAR, remoteHandle, tag);
176 return this->SendVoidArray(data, length,
VTK_SIGNED_CHAR, remoteHandle, tag);
179 return this->SendVoidArray(data, length,
VTK_FLOAT, remoteHandle, tag);
182 return this->SendVoidArray(data, length,
VTK_DOUBLE, remoteHandle, tag);
184 #ifdef VTK_USE_64BIT_IDS
186 return this->SendVoidArray(data, length,
VTK_ID_TYPE, remoteHandle, tag);
190 return this->SendVoidArray(data, length,
VTK_LONG_LONG, remoteHandle, tag);
224 int remoteHandle,
int tag) = 0;
230 return this->ReceiveVoidArray(data, maxlength,
VTK_INT, remoteHandle, tag);
233 return this->ReceiveVoidArray(data, maxlength,
VTK_INT, remoteHandle, tag);
236 return this->ReceiveVoidArray(data, maxlength,
VTK_SHORT, remoteHandle, tag);
239 return this->ReceiveVoidArray(data, maxlength,
VTK_UNSIGNED_SHORT, remoteHandle, tag);
242 return this->ReceiveVoidArray(data, maxlength,
VTK_LONG, remoteHandle, tag);
253 return this->ReceiveVoidArray(data, maxlength,
VTK_CHAR, remoteHandle, tag);
256 return this->ReceiveVoidArray(data, maxlength,
VTK_SIGNED_CHAR, remoteHandle, tag);
259 return this->ReceiveVoidArray(data, maxlength,
VTK_FLOAT, remoteHandle, tag);
262 return this->ReceiveVoidArray(data, maxlength,
VTK_DOUBLE, remoteHandle, tag);
264 #ifdef VTK_USE_64BIT_IDS
266 return this->ReceiveVoidArray(data, maxlength,
VTK_ID_TYPE, remoteHandle, tag);
270 return this->ReceiveVoidArray(data, maxlength,
VTK_LONG_LONG, remoteHandle, tag);
296 virtual void Barrier();
303 return this->BroadcastVoidArray(data, length,
VTK_INT, srcProcessId);
306 return this->BroadcastVoidArray(data, length,
VTK_UNSIGNED_INT, srcProcessId);
309 return this->BroadcastVoidArray(data, length,
VTK_SHORT, srcProcessId);
315 return this->BroadcastVoidArray(data, length,
VTK_LONG, srcProcessId);
324 return this->BroadcastVoidArray(data, length,
VTK_CHAR, srcProcessId);
327 return this->BroadcastVoidArray(data, length,
VTK_SIGNED_CHAR, srcProcessId);
330 return this->BroadcastVoidArray(data, length,
VTK_FLOAT, srcProcessId);
333 return this->BroadcastVoidArray(data, length,
VTK_DOUBLE, srcProcessId);
335 #ifdef VTK_USE_64BIT_IDS
337 return this->BroadcastVoidArray(data, length,
VTK_ID_TYPE, srcProcessId);
341 return this->BroadcastVoidArray(data, length,
VTK_LONG_LONG, srcProcessId);
363 int Gather(
const int *sendBuffer,
int *recvBuffer,
365 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
368 int Gather(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
370 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
373 int Gather(
const short *sendBuffer,
short *recvBuffer,
375 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
378 int Gather(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
380 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
383 int Gather(
const long *sendBuffer,
long *recvBuffer,
385 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
388 int Gather(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
390 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
393 int Gather(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
395 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
398 int Gather(
const char *sendBuffer,
char *recvBuffer,
400 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
403 int Gather(
const signed char *sendBuffer,
signed char *recvBuffer,
405 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
408 int Gather(
const float *sendBuffer,
float *recvBuffer,
410 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
413 int Gather(
const double *sendBuffer,
double *recvBuffer,
415 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
418 #ifdef VTK_USE_64BIT_IDS
421 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
425 int Gather(
const long long *sendBuffer,
long long *recvBuffer,
427 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
431 int Gather(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
433 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
451 int GatherV(
const int* sendBuffer,
int* recvBuffer,
454 return this->GatherVVoidArray(sendBuffer, recvBuffer,
455 sendLength, recvLengths,
456 offsets,
VTK_INT, destProcessId);
458 int GatherV(
const unsigned int* sendBuffer,
unsigned int* recvBuffer,
461 return this->GatherVVoidArray(sendBuffer, recvBuffer,
462 sendLength, recvLengths,
465 int GatherV(
const short* sendBuffer,
short* recvBuffer,
468 return this->GatherVVoidArray(sendBuffer, recvBuffer,
469 sendLength, recvLengths,
472 int GatherV(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
475 return this->GatherVVoidArray(sendBuffer, recvBuffer,
476 sendLength, recvLengths,
479 int GatherV(
const long* sendBuffer,
long* recvBuffer,
482 return this->GatherVVoidArray(sendBuffer, recvBuffer,
483 sendLength, recvLengths,
486 int GatherV(
const unsigned long* sendBuffer,
unsigned long* recvBuffer,
489 return this->GatherVVoidArray(sendBuffer, recvBuffer,
490 sendLength, recvLengths,
493 int GatherV(
const unsigned char* sendBuffer,
unsigned char* recvBuffer,
496 return this->GatherVVoidArray(sendBuffer, recvBuffer,
497 sendLength, recvLengths,
500 int GatherV(
const char* sendBuffer,
char* recvBuffer,
503 return this->GatherVVoidArray(sendBuffer, recvBuffer,
504 sendLength, recvLengths,
507 int GatherV(
const signed char* sendBuffer,
signed char* recvBuffer,
510 return this->GatherVVoidArray(sendBuffer, recvBuffer,
511 sendLength, recvLengths,
514 int GatherV(
const float* sendBuffer,
float* recvBuffer,
517 return this->GatherVVoidArray(sendBuffer, recvBuffer,
518 sendLength, recvLengths,
521 int GatherV(
const double* sendBuffer,
double* recvBuffer,
524 return this->GatherVVoidArray(sendBuffer, recvBuffer,
525 sendLength, recvLengths,
528 #ifdef VTK_USE_64BIT_IDS
532 return this->GatherVVoidArray(sendBuffer, recvBuffer,
533 sendLength, recvLengths,
537 int GatherV(
const long long* sendBuffer,
long long* recvBuffer,
540 return this->GatherVVoidArray(sendBuffer, recvBuffer,
541 sendLength, recvLengths,
545 int GatherV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
548 return this->GatherVVoidArray(sendBuffer, recvBuffer,
549 sendLength, recvLengths,
588 int Scatter(
const int *sendBuffer,
int *recvBuffer,
590 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
593 int Scatter(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
595 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
598 int Scatter(
const short *sendBuffer,
short *recvBuffer,
600 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
603 int Scatter(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
605 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
608 int Scatter(
const long *sendBuffer,
long *recvBuffer,
610 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
613 int Scatter(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
615 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
618 int Scatter(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
620 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
623 int Scatter(
const char *sendBuffer,
char *recvBuffer,
625 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
628 int Scatter(
const signed char *sendBuffer,
signed char *recvBuffer,
630 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
633 int Scatter(
const float *sendBuffer,
float *recvBuffer,
635 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
638 int Scatter(
const double *sendBuffer,
double *recvBuffer,
640 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
643 #ifdef VTK_USE_64BIT_IDS
646 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
650 int Scatter(
const long long *sendBuffer,
long long *recvBuffer,
652 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
656 int Scatter(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
658 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
672 int ScatterV(
const int *sendBuffer,
int *recvBuffer,
674 vtkIdType recvLength,
int srcProcessId) {
675 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
676 sendLengths, offsets, recvLength,
679 int ScatterV(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
681 vtkIdType recvLength,
int srcProcessId) {
682 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
683 sendLengths, offsets, recvLength,
686 int ScatterV(
const short *sendBuffer,
short *recvBuffer,
688 vtkIdType recvLength,
int srcProcessId) {
689 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
690 sendLengths, offsets, recvLength,
693 int ScatterV(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
695 vtkIdType recvLength,
int srcProcessId) {
696 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
697 sendLengths, offsets, recvLength,
700 int ScatterV(
const long *sendBuffer,
long *recvBuffer,
702 vtkIdType recvLength,
int srcProcessId) {
703 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
704 sendLengths, offsets, recvLength,
707 int ScatterV(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
709 vtkIdType recvLength,
int srcProcessId) {
710 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
711 sendLengths, offsets, recvLength,
714 int ScatterV(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
716 vtkIdType recvLength,
int srcProcessId) {
717 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
718 sendLengths, offsets, recvLength,
721 int ScatterV(
const char *sendBuffer,
char *recvBuffer,
723 vtkIdType recvLength,
int srcProcessId) {
724 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
725 sendLengths, offsets, recvLength,
728 int ScatterV(
const signed char *sendBuffer,
signed char *recvBuffer,
730 vtkIdType recvLength,
int srcProcessId) {
731 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
732 sendLengths, offsets, recvLength,
735 int ScatterV(
const float *sendBuffer,
float *recvBuffer,
737 vtkIdType recvLength,
int srcProcessId) {
738 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
739 sendLengths, offsets, recvLength,
742 int ScatterV(
const double *sendBuffer,
double *recvBuffer,
744 vtkIdType recvLength,
int srcProcessId) {
745 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
746 sendLengths, offsets, recvLength,
749 #ifdef VTK_USE_64BIT_IDS
752 vtkIdType recvLength,
int srcProcessId) {
753 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
754 sendLengths, offsets, recvLength,
758 int ScatterV(
const long long *sendBuffer,
long long *recvBuffer,
760 vtkIdType recvLength,
int srcProcessId) {
761 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
762 sendLengths, offsets, recvLength,
766 int ScatterV(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
768 vtkIdType recvLength,
int srcProcessId) {
769 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
770 sendLengths, offsets, recvLength,
778 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_INT);
780 int AllGather(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
782 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
786 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_SHORT);
788 int AllGather(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
790 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
794 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_LONG);
798 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
803 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
807 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_CHAR);
809 int AllGather(
const signed char *sendBuffer,
signed char *recvBuffer,
811 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
815 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_FLOAT);
819 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_DOUBLE);
821 #ifdef VTK_USE_64BIT_IDS
824 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
828 int AllGather(
const long long *sendBuffer,
long long *recvBuffer,
830 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
836 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
847 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
848 sendLength, recvLengths,
851 int AllGatherV(
const unsigned int* sendBuffer,
unsigned int* recvBuffer,
854 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
855 sendLength, recvLengths,
861 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
862 sendLength, recvLengths,
865 int AllGatherV(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
868 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
869 sendLength, recvLengths,
875 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
876 sendLength, recvLengths,
879 int AllGatherV(
const unsigned long* sendBuffer,
unsigned long* recvBuffer,
882 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
883 sendLength, recvLengths,
886 int AllGatherV(
const unsigned char* sendBuffer,
unsigned char* recvBuffer,
889 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
890 sendLength, recvLengths,
896 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
897 sendLength, recvLengths,
900 int AllGatherV(
const signed char* sendBuffer,
signed char* recvBuffer,
903 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
904 sendLength, recvLengths,
910 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
911 sendLength, recvLengths,
917 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
918 sendLength, recvLengths,
921 #ifdef VTK_USE_64BIT_IDS
925 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
926 sendLength, recvLengths,
930 int AllGatherV(
const long long* sendBuffer,
long long* recvBuffer,
933 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
934 sendLength, recvLengths,
938 int AllGatherV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
941 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
942 sendLength, recvLengths,
954 int Reduce(
const int *sendBuffer,
int *recvBuffer,
956 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
957 VTK_INT, operation, destProcessId);
959 int Reduce(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
961 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
964 int Reduce(
const short *sendBuffer,
short *recvBuffer,
966 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
969 int Reduce(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
971 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
974 int Reduce(
const long *sendBuffer,
long *recvBuffer,
976 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
977 VTK_LONG, operation, destProcessId);
979 int Reduce(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
981 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
984 int Reduce(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
986 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
989 int Reduce(
const char *sendBuffer,
char *recvBuffer,
991 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
992 VTK_CHAR, operation, destProcessId);
994 int Reduce(
const signed char *sendBuffer,
signed char *recvBuffer,
996 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
999 int Reduce(
const float *sendBuffer,
float *recvBuffer,
1001 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1004 int Reduce(
const double *sendBuffer,
double *recvBuffer,
1006 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1009 #ifdef VTK_USE_64BIT_IDS
1012 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1016 int Reduce(
const long long *sendBuffer,
long long *recvBuffer,
1018 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1022 int Reduce(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
1024 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1028 int operation,
int destProcessId);
1035 int Reduce(
const int *sendBuffer,
int *recvBuffer,
1037 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1038 VTK_INT, operation, destProcessId);
1040 int Reduce(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
1042 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1045 int Reduce(
const short *sendBuffer,
short *recvBuffer,
1047 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1050 int Reduce(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
1052 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1055 int Reduce(
const long *sendBuffer,
long *recvBuffer,
1057 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1058 VTK_LONG, operation, destProcessId);
1060 int Reduce(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
1062 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1065 int Reduce(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
1067 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1070 int Reduce(
const char *sendBuffer,
char *recvBuffer,
1072 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1073 VTK_CHAR, operation, destProcessId);
1075 int Reduce(
const signed char *sendBuffer,
signed char *recvBuffer,
1077 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1080 int Reduce(
const float *sendBuffer,
float *recvBuffer,
1082 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1085 int Reduce(
const double *sendBuffer,
double *recvBuffer,
1087 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1090 #ifdef VTK_USE_64BIT_IDS
1093 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1097 int Reduce(
const long long *sendBuffer,
long long *recvBuffer,
1099 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1103 int Reduce(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
1105 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1109 Operation *operation,
int destProcessId);
1117 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1120 int AllReduce(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
1122 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1127 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1130 int AllReduce(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
1132 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1137 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1140 int AllReduce(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
1142 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1145 int AllReduce(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
1147 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1152 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1155 int AllReduce(
const signed char *sendBuffer,
signed char *recvBuffer,
1157 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1162 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1167 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1170 #ifdef VTK_USE_64BIT_IDS
1173 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1177 int AllReduce(
const long long *sendBuffer,
long long *recvBuffer,
1179 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1183 int AllReduce(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
1185 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1192 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1195 int AllReduce(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
1197 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1202 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1205 int AllReduce(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
1207 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1212 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1215 int AllReduce(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
1217 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1220 int AllReduce(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
1222 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1227 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1230 int AllReduce(
const signed char *sendBuffer,
signed char *recvBuffer,
1232 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1237 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1242 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1245 #ifdef VTK_USE_64BIT_IDS
1248 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1252 int AllReduce(
const long long *sendBuffer,
long long *recvBuffer,
1254 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1258 int AllReduce(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
1260 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1264 Operation *operation);
1272 virtual int GatherVoidArray(
const void *sendBuffer,
void *recvBuffer,
1274 virtual int GatherVVoidArray(
const void *sendBuffer,
void *recvBuffer,
1277 virtual int ScatterVoidArray(
const void *sendBuffer,
void *recvBuffer,
1279 virtual int ScatterVVoidArray(
const void *sendBuffer,
void *recvBuffer,
1283 virtual int AllGatherVoidArray(
const void *sendBuffer,
void *recvBuffer,
1285 virtual int AllGatherVVoidArray(
const void *sendBuffer,
void *recvBuffer,
1288 virtual int ReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
1290 int operation,
int destProcessId);
1291 virtual int ReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
1293 Operation *operation,
int destProcessId);
1294 virtual int AllReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
1297 virtual int AllReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
1299 Operation *operation);
1302 static void SetUseCopy(
int useCopy);
1314 virtual int ComputeGlobalBounds(
int processorId,
int numProcesses,
1316 int *rightHasBounds = 0,
1317 int *leftHasBounds = 0,
1318 int hasBoundsTag = 288402,
1319 int localBoundsTag = 288403,
1320 int globalBoundsTag = 288404);
1328 static int GetParentProcessor(
int pid);
1329 static int GetLeftChildProcessor(
int pid);
1365 int remoteHandle,
int tag,
int type=-1);
1367 int remoteHandle,
int tag);
1368 int ReceiveMultiBlockDataSet(
1385 #endif // vtkCommunicator_h
int Receive(double *data, vtkIdType maxlength, int remoteHandle, int tag)
int Receive(unsigned int *data, vtkIdType maxlength, int remoteHandle, int tag)
int AllGather(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length)
int Broadcast(float *data, vtkIdType length, int srcProcessId)
int AllReduce(const char *sendBuffer, char *recvBuffer, vtkIdType length, Operation *operation)
int Gather(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int destProcessId)
int ScatterV(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int ScatterV(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int Gather(const int *sendBuffer, int *recvBuffer, vtkIdType length, int destProcessId)
int GatherV(const double *sendBuffer, double *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int AllReduce(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int operation)
int AllGatherV(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Send(const short *data, vtkIdType length, int remoteHandle, int tag)
int Reduce(const long *sendBuffer, long *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int ScatterV(const double *sendBuffer, double *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int AllReduce(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int operation)
int Send(const int *data, vtkIdType length, int remoteHandle, int tag)
abstract base class for most VTK objects
int GatherV(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int Receive(unsigned char *data, vtkIdType maxlength, int remoteHandle, int tag)
int Scatter(const double *sendBuffer, double *recvBuffer, vtkIdType length, int srcProcessId)
int AllGather(const long long *sendBuffer, long long *recvBuffer, vtkIdType length)
stream used to pass data across processes using vtkMultiProcessController.
int Gather(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int destProcessId)
int Receive(long long *data, vtkIdType maxlength, int remoteHandle, int tag)
int GatherV(const char *sendBuffer, char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
#define VTKPARALLELCORE_EXPORT
int Gather(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, int destProcessId)
#define VTK_UNSIGNED_SHORT
int AllGatherV(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
abstract class to specify dataset behavior
int Gather(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int destProcessId)
int AllReduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int operation)
int AllReduce(const double *sendBuffer, double *recvBuffer, vtkIdType length, Operation *operation)
int AllReduce(const float *sendBuffer, float *recvBuffer, vtkIdType length, Operation *operation)
int Reduce(const float *sendBuffer, float *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Reduce(const double *sendBuffer, double *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Scatter(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int srcProcessId)
int Reduce(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int ScatterV(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int Scatter(const long *sendBuffer, long *recvBuffer, vtkIdType length, int srcProcessId)
int Send(const float *data, vtkIdType length, int remoteHandle, int tag)
int Scatter(const char *sendBuffer, char *recvBuffer, vtkIdType length, int srcProcessId)
int AllReduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, Operation *operation)
int Broadcast(unsigned short *data, vtkIdType length, int srcProcessId)
int Send(const unsigned short *data, vtkIdType length, int remoteHandle, int tag)
int Scatter(const short *sendBuffer, short *recvBuffer, vtkIdType length, int srcProcessId)
int ScatterV(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int Broadcast(signed char *data, vtkIdType length, int srcProcessId)
int GatherV(const long long *sendBuffer, long long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int AllReduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, Operation *operation)
int Send(const signed char *data, vtkIdType length, int remoteHandle, int tag)
int Reduce(const int *sendBuffer, int *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int GatherV(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int AllReduce(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, Operation *operation)
dynamic, self-adjusting array of vtkIdType
int Reduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int AllGatherV(const int *sendBuffer, int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int AllReduce(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, Operation *operation)
int Broadcast(char *data, vtkIdType length, int srcProcessId)
int AllGather(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length)
int AllGather(const double *sendBuffer, double *recvBuffer, vtkIdType length)
int MaximumNumberOfProcesses
int Send(const double *data, vtkIdType length, int remoteHandle, int tag)
int ScatterV(const short *sendBuffer, short *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int AllGatherV(const long long *sendBuffer, long long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int ScatterV(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int GatherV(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int AllReduce(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, Operation *operation)
int AllReduce(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, int operation)
int ScatterV(const int *sendBuffer, int *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int Reduce(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Scatter(const float *sendBuffer, float *recvBuffer, vtkIdType length, int srcProcessId)
int AllReduce(const char *sendBuffer, char *recvBuffer, vtkIdType length, int operation)
int Broadcast(unsigned long long *data, vtkIdType length, int srcProcessId)
int Reduce(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, int operation, int destProcessId)
int ScatterV(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
dynamic, self-adjusting array of char
int Broadcast(long *data, vtkIdType length, int srcProcessId)
int AllGather(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length)
int AllGather(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length)
int AllGatherV(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Gather(const double *sendBuffer, double *recvBuffer, vtkIdType length, int destProcessId)
int Receive(char *data, vtkIdType maxlength, int remoteHandle, int tag)
int Send(const unsigned int *data, vtkIdType length, int remoteHandle, int tag)
virtual void PrintSelf(ostream &os, vtkIndent indent)
int Send(const unsigned long long *data, vtkIdType length, int remoteHandle, int tag)
int Reduce(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Scatter(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, int srcProcessId)
int AllGatherV(const float *sendBuffer, float *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Gather(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, int destProcessId)
int AllGatherV(const short *sendBuffer, short *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Reduce(const float *sendBuffer, float *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
a simple class to control print indentation
int AllReduce(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int operation)
int Receive(short *data, vtkIdType maxlength, int remoteHandle, int tag)
int ScatterV(const char *sendBuffer, char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int AllGatherV(const char *sendBuffer, char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Receive(long *data, vtkIdType maxlength, int remoteHandle, int tag)
int GatherV(const short *sendBuffer, short *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
topologically and geometrically regular array of data
int GatherV(const long *sendBuffer, long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int Receive(signed char *data, vtkIdType maxlength, int remoteHandle, int tag)
int AllReduce(const long *sendBuffer, long *recvBuffer, vtkIdType length, int operation)
abstract superclass for arrays of numeric data
int AllGather(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length)
int Reduce(const int *sendBuffer, int *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Gather(const short *sendBuffer, short *recvBuffer, vtkIdType length, int destProcessId)
int AllReduce(const double *sendBuffer, double *recvBuffer, vtkIdType length, int operation)
int Reduce(const long long *sendBuffer, long long *recvBuffer, vtkIdType length, int operation, int destProcessId)
int AllGather(const float *sendBuffer, float *recvBuffer, vtkIdType length)
int AllReduce(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, Operation *operation)
int Reduce(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Send(const unsigned long *data, vtkIdType length, int remoteHandle, int tag)
int Gather(const char *sendBuffer, char *recvBuffer, vtkIdType length, int destProcessId)
int AllGatherV(const double *sendBuffer, double *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Scatter(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int srcProcessId)
int Gather(const float *sendBuffer, float *recvBuffer, vtkIdType length, int destProcessId)
int AllGatherV(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Reduce(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int operation, int destProcessId)
int GatherV(const int *sendBuffer, int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int Broadcast(unsigned long *data, vtkIdType length, int srcProcessId)
int AllGather(const long *sendBuffer, long *recvBuffer, vtkIdType length)
int ScatterV(const long long *sendBuffer, long long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int AllReduce(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, int operation)
int Scatter(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, int srcProcessId)
int Broadcast(long long *data, vtkIdType length, int srcProcessId)
int Reduce(const char *sendBuffer, char *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Broadcast(short *data, vtkIdType length, int srcProcessId)
int Scatter(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int srcProcessId)
int AllGatherV(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int AllGather(const int *sendBuffer, int *recvBuffer, vtkIdType length)
int Broadcast(double *data, vtkIdType length, int srcProcessId)
int AllReduce(const int *sendBuffer, int *recvBuffer, vtkIdType length, Operation *operation)
int Reduce(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Send(const long *data, vtkIdType length, int remoteHandle, int tag)
int Receive(float *data, vtkIdType maxlength, int remoteHandle, int tag)
int Send(const long long *data, vtkIdType length, int remoteHandle, int tag)
int Scatter(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int srcProcessId)
int Send(const unsigned char *data, vtkIdType length, int remoteHandle, int tag)
#define VTK_UNSIGNED_CHAR
int ScatterV(const float *sendBuffer, float *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
int Gather(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int destProcessId)
int AllReduce(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType length, Operation *operation)
int Reduce(const char *sendBuffer, char *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Gather(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int destProcessId)
int AllGather(const short *sendBuffer, short *recvBuffer, vtkIdType length)
int AllGather(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length)
Composite dataset that organizes datasets into blocks.
int AllReduce(const float *sendBuffer, float *recvBuffer, vtkIdType length, int operation)
int AllGatherV(const long *sendBuffer, long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Receive(int *data, vtkIdType maxlength, int remoteHandle, int tag)
int Reduce(const signed char *sendBuffer, signed char *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int Receive(unsigned long long *data, vtkIdType maxlength, int remoteHandle, int tag)
int Reduce(const short *sendBuffer, short *recvBuffer, vtkIdType length, int operation, int destProcessId)
int GatherV(const float *sendBuffer, float *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int Reduce(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int operation, int destProcessId)
int Broadcast(unsigned char *data, vtkIdType length, int srcProcessId)
#define VTK_UNSIGNED_LONG
int Receive(unsigned long *data, vtkIdType maxlength, int remoteHandle, int tag)
int Broadcast(int *data, vtkIdType length, int srcProcessId)
int GatherV(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int Reduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int operation, int destProcessId)
int AllGather(const char *sendBuffer, char *recvBuffer, vtkIdType length)
int Reduce(const long *sendBuffer, long *recvBuffer, vtkIdType length, int operation, int destProcessId)
Used to send/receive messages in a multiprocess environment.
int Reduce(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int AllGatherV(const unsigned short *sendBuffer, unsigned short *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets)
int Scatter(const int *sendBuffer, int *recvBuffer, vtkIdType length, int srcProcessId)
general representation of visualization data
int GatherV(const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int AllReduce(const long *sendBuffer, long *recvBuffer, vtkIdType length, Operation *operation)
int Send(const char *data, vtkIdType length, int remoteHandle, int tag)
int Reduce(const short *sendBuffer, short *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
int AllReduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int operation)
int ScatterV(const long *sendBuffer, long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId)
#define VTK_UNSIGNED_LONG_LONG
int AllReduce(const int *sendBuffer, int *recvBuffer, vtkIdType length, int operation)
int Receive(unsigned short *data, vtkIdType maxlength, int remoteHandle, int tag)
int AllReduce(const short *sendBuffer, short *recvBuffer, vtkIdType length, int operation)
int Scatter(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, int srcProcessId)
int Broadcast(unsigned int *data, vtkIdType length, int srcProcessId)
int Reduce(const unsigned long long *sendBuffer, unsigned long long *recvBuffer, vtkIdType length, Operation *operation, int destProcessId)
Fast Simple Class for dealing with 3D bounds.
int AllReduce(const short *sendBuffer, short *recvBuffer, vtkIdType length, Operation *operation)
int Reduce(const double *sendBuffer, double *recvBuffer, vtkIdType length, int operation, int destProcessId)
int GatherV(const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId)
int Gather(const long *sendBuffer, long *recvBuffer, vtkIdType length, int destProcessId)