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);
188 #elif defined(VTK_TYPE_USE_LONG_LONG)
190 return this->SendVoidArray(data, length,
VTK_LONG_LONG, remoteHandle, tag);
193 #ifdef VTK_TYPE_USE_LONG_LONG
226 int remoteHandle,
int tag) = 0;
232 return this->ReceiveVoidArray(data, maxlength,
VTK_INT, remoteHandle, tag);
235 return this->ReceiveVoidArray(data, maxlength,
VTK_INT, remoteHandle, tag);
238 return this->ReceiveVoidArray(data, maxlength,
VTK_SHORT, remoteHandle, tag);
241 return this->ReceiveVoidArray(data, maxlength,
VTK_UNSIGNED_SHORT, remoteHandle, tag);
244 return this->ReceiveVoidArray(data, maxlength,
VTK_LONG, remoteHandle, tag);
255 return this->ReceiveVoidArray(data, maxlength,
VTK_CHAR, remoteHandle, tag);
258 return this->ReceiveVoidArray(data, maxlength,
VTK_SIGNED_CHAR, remoteHandle, tag);
261 return this->ReceiveVoidArray(data, maxlength,
VTK_FLOAT, remoteHandle, tag);
264 return this->ReceiveVoidArray(data, maxlength,
VTK_DOUBLE, remoteHandle, tag);
266 #ifdef VTK_USE_64BIT_IDS
268 return this->ReceiveVoidArray(data, maxlength,
VTK_ID_TYPE, remoteHandle, tag);
270 #elif defined(VTK_TYPE_USE_LONG_LONG)
271 int Receive(
long long*
data,
vtkIdType maxlength,
int remoteHandle,
int tag) {
272 return this->ReceiveVoidArray(data, maxlength,
VTK_LONG_LONG, remoteHandle, tag);
275 #ifdef VTK_TYPE_USE_LONG_LONG
276 int Receive(
unsigned long long*
data,
vtkIdType maxlength,
int remoteHandle,
int tag) {
300 virtual void Barrier();
307 return this->BroadcastVoidArray(data, length,
VTK_INT, srcProcessId);
310 return this->BroadcastVoidArray(data, length,
VTK_UNSIGNED_INT, srcProcessId);
313 return this->BroadcastVoidArray(data, length,
VTK_SHORT, srcProcessId);
319 return this->BroadcastVoidArray(data, length,
VTK_LONG, srcProcessId);
328 return this->BroadcastVoidArray(data, length,
VTK_CHAR, srcProcessId);
331 return this->BroadcastVoidArray(data, length,
VTK_SIGNED_CHAR, srcProcessId);
334 return this->BroadcastVoidArray(data, length,
VTK_FLOAT, srcProcessId);
337 return this->BroadcastVoidArray(data, length,
VTK_DOUBLE, srcProcessId);
339 #ifdef VTK_USE_64BIT_IDS
341 return this->BroadcastVoidArray(data, length,
VTK_ID_TYPE, srcProcessId);
343 #elif defined(VTK_TYPE_USE_LONG_LONG)
345 return this->BroadcastVoidArray(data, length,
VTK_LONG_LONG, srcProcessId);
348 #ifdef VTK_TYPE_USE_LONG_LONG
369 int Gather(
const int *sendBuffer,
int *recvBuffer,
371 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
374 int Gather(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
376 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
379 int Gather(
const short *sendBuffer,
short *recvBuffer,
381 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
384 int Gather(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
386 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
389 int Gather(
const long *sendBuffer,
long *recvBuffer,
391 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
394 int Gather(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
396 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
399 int Gather(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
401 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
404 int Gather(
const char *sendBuffer,
char *recvBuffer,
406 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
409 int Gather(
const signed char *sendBuffer,
signed char *recvBuffer,
411 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
414 int Gather(
const float *sendBuffer,
float *recvBuffer,
416 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
419 int Gather(
const double *sendBuffer,
double *recvBuffer,
421 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
424 #ifdef VTK_USE_64BIT_IDS
427 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
430 #elif defined(VTK_TYPE_USE_LONG_LONG)
431 int Gather(
const long long *sendBuffer,
long long *recvBuffer,
433 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
437 #ifdef VTK_TYPE_USE_LONG_LONG
438 int Gather(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
440 return this->GatherVoidArray(sendBuffer, recvBuffer, length,
459 int GatherV(
const int* sendBuffer,
int* recvBuffer,
462 return this->GatherVVoidArray(sendBuffer, recvBuffer,
463 sendLength, recvLengths,
464 offsets,
VTK_INT, destProcessId);
466 int GatherV(
const unsigned int* sendBuffer,
unsigned int* recvBuffer,
469 return this->GatherVVoidArray(sendBuffer, recvBuffer,
470 sendLength, recvLengths,
473 int GatherV(
const short* sendBuffer,
short* recvBuffer,
476 return this->GatherVVoidArray(sendBuffer, recvBuffer,
477 sendLength, recvLengths,
480 int GatherV(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
483 return this->GatherVVoidArray(sendBuffer, recvBuffer,
484 sendLength, recvLengths,
487 int GatherV(
const long* sendBuffer,
long* recvBuffer,
490 return this->GatherVVoidArray(sendBuffer, recvBuffer,
491 sendLength, recvLengths,
494 int GatherV(
const unsigned long* sendBuffer,
unsigned long* recvBuffer,
497 return this->GatherVVoidArray(sendBuffer, recvBuffer,
498 sendLength, recvLengths,
501 int GatherV(
const unsigned char* sendBuffer,
unsigned char* recvBuffer,
504 return this->GatherVVoidArray(sendBuffer, recvBuffer,
505 sendLength, recvLengths,
508 int GatherV(
const char* sendBuffer,
char* recvBuffer,
511 return this->GatherVVoidArray(sendBuffer, recvBuffer,
512 sendLength, recvLengths,
515 int GatherV(
const signed char* sendBuffer,
signed char* recvBuffer,
518 return this->GatherVVoidArray(sendBuffer, recvBuffer,
519 sendLength, recvLengths,
522 int GatherV(
const float* sendBuffer,
float* recvBuffer,
525 return this->GatherVVoidArray(sendBuffer, recvBuffer,
526 sendLength, recvLengths,
529 int GatherV(
const double* sendBuffer,
double* recvBuffer,
532 return this->GatherVVoidArray(sendBuffer, recvBuffer,
533 sendLength, recvLengths,
536 #ifdef VTK_USE_64BIT_IDS
540 return this->GatherVVoidArray(sendBuffer, recvBuffer,
541 sendLength, recvLengths,
544 #elif defined(VTK_TYPE_USE_LONG_LONG)
545 int GatherV(
const long long* sendBuffer,
long long* recvBuffer,
548 return this->GatherVVoidArray(sendBuffer, recvBuffer,
549 sendLength, recvLengths,
553 #ifdef VTK_TYPE_USE_LONG_LONG
554 int GatherV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
557 return this->GatherVVoidArray(sendBuffer, recvBuffer,
558 sendLength, recvLengths,
598 int Scatter(
const int *sendBuffer,
int *recvBuffer,
600 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
603 int Scatter(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
605 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
608 int Scatter(
const short *sendBuffer,
short *recvBuffer,
610 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
613 int Scatter(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
615 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
618 int Scatter(
const long *sendBuffer,
long *recvBuffer,
620 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
623 int Scatter(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
625 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
628 int Scatter(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
630 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
633 int Scatter(
const char *sendBuffer,
char *recvBuffer,
635 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
638 int Scatter(
const signed char *sendBuffer,
signed char *recvBuffer,
640 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
643 int Scatter(
const float *sendBuffer,
float *recvBuffer,
645 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
648 int Scatter(
const double *sendBuffer,
double *recvBuffer,
650 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
653 #ifdef VTK_USE_64BIT_IDS
656 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
659 #elif defined(VTK_TYPE_USE_LONG_LONG)
660 int Scatter(
const long long *sendBuffer,
long long *recvBuffer,
662 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
666 #ifdef VTK_TYPE_USE_LONG_LONG
667 int Scatter(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
669 return this->ScatterVoidArray(sendBuffer, recvBuffer, length,
684 int ScatterV(
const int *sendBuffer,
int *recvBuffer,
686 vtkIdType recvLength,
int srcProcessId) {
687 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
688 sendLengths, offsets, recvLength,
691 int ScatterV(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
693 vtkIdType recvLength,
int srcProcessId) {
694 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
695 sendLengths, offsets, recvLength,
698 int ScatterV(
const short *sendBuffer,
short *recvBuffer,
700 vtkIdType recvLength,
int srcProcessId) {
701 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
702 sendLengths, offsets, recvLength,
705 int ScatterV(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
707 vtkIdType recvLength,
int srcProcessId) {
708 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
709 sendLengths, offsets, recvLength,
712 int ScatterV(
const long *sendBuffer,
long *recvBuffer,
714 vtkIdType recvLength,
int srcProcessId) {
715 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
716 sendLengths, offsets, recvLength,
719 int ScatterV(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
721 vtkIdType recvLength,
int srcProcessId) {
722 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
723 sendLengths, offsets, recvLength,
726 int ScatterV(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
728 vtkIdType recvLength,
int srcProcessId) {
729 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
730 sendLengths, offsets, recvLength,
733 int ScatterV(
const char *sendBuffer,
char *recvBuffer,
735 vtkIdType recvLength,
int srcProcessId) {
736 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
737 sendLengths, offsets, recvLength,
740 int ScatterV(
const signed char *sendBuffer,
signed char *recvBuffer,
742 vtkIdType recvLength,
int srcProcessId) {
743 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
744 sendLengths, offsets, recvLength,
747 int ScatterV(
const float *sendBuffer,
float *recvBuffer,
749 vtkIdType recvLength,
int srcProcessId) {
750 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
751 sendLengths, offsets, recvLength,
754 int ScatterV(
const double *sendBuffer,
double *recvBuffer,
756 vtkIdType recvLength,
int srcProcessId) {
757 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
758 sendLengths, offsets, recvLength,
761 #ifdef VTK_USE_64BIT_IDS
764 vtkIdType recvLength,
int srcProcessId) {
765 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
766 sendLengths, offsets, recvLength,
769 #elif defined(VTK_TYPE_USE_LONG_LONG)
770 int ScatterV(
const long long *sendBuffer,
long long *recvBuffer,
772 vtkIdType recvLength,
int srcProcessId) {
773 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
774 sendLengths, offsets, recvLength,
778 #ifdef VTK_TYPE_USE_LONG_LONG
779 int ScatterV(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
781 vtkIdType recvLength,
int srcProcessId) {
782 return this->ScatterVVoidArray(sendBuffer, recvBuffer,
783 sendLengths, offsets, recvLength,
792 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_INT);
794 int AllGather(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
796 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
800 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_SHORT);
802 int AllGather(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
804 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
808 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_LONG);
812 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
817 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
821 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_CHAR);
823 int AllGather(
const signed char *sendBuffer,
signed char *recvBuffer,
825 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
829 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_FLOAT);
833 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
VTK_DOUBLE);
835 #ifdef VTK_USE_64BIT_IDS
838 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
841 #elif defined(VTK_TYPE_USE_LONG_LONG)
842 int AllGather(
const long long *sendBuffer,
long long *recvBuffer,
844 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
848 #ifdef VTK_TYPE_USE_LONG_LONG
849 int AllGather(
const unsigned long long *sendBuffer,
851 return this->AllGatherVoidArray(sendBuffer, recvBuffer, length,
863 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
864 sendLength, recvLengths,
867 int AllGatherV(
const unsigned int* sendBuffer,
unsigned int* recvBuffer,
870 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
871 sendLength, recvLengths,
877 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
878 sendLength, recvLengths,
881 int AllGatherV(
const unsigned short* sendBuffer,
unsigned short* recvBuffer,
884 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
885 sendLength, recvLengths,
891 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
892 sendLength, recvLengths,
895 int AllGatherV(
const unsigned long* sendBuffer,
unsigned long* recvBuffer,
898 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
899 sendLength, recvLengths,
902 int AllGatherV(
const unsigned char* sendBuffer,
unsigned char* recvBuffer,
905 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
906 sendLength, recvLengths,
912 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
913 sendLength, recvLengths,
916 int AllGatherV(
const signed char* sendBuffer,
signed char* recvBuffer,
919 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
920 sendLength, recvLengths,
926 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
927 sendLength, recvLengths,
933 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
934 sendLength, recvLengths,
937 #ifdef VTK_USE_64BIT_IDS
941 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
942 sendLength, recvLengths,
945 #elif defined(VTK_TYPE_USE_LONG_LONG)
946 int AllGatherV(
const long long* sendBuffer,
long long* recvBuffer,
949 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
950 sendLength, recvLengths,
954 #ifdef VTK_TYPE_USE_LONG_LONG
955 int AllGatherV(
const unsigned long long* sendBuffer,
unsigned long long* recvBuffer,
958 return this->AllGatherVVoidArray(sendBuffer, recvBuffer,
959 sendLength, recvLengths,
972 int Reduce(
const int *sendBuffer,
int *recvBuffer,
974 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
975 VTK_INT, operation, destProcessId);
977 int Reduce(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
979 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
982 int Reduce(
const short *sendBuffer,
short *recvBuffer,
984 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
987 int Reduce(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
989 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
992 int Reduce(
const long *sendBuffer,
long *recvBuffer,
994 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
995 VTK_LONG, operation, destProcessId);
997 int Reduce(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
999 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1002 int Reduce(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
1004 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1007 int Reduce(
const char *sendBuffer,
char *recvBuffer,
1009 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1010 VTK_CHAR, operation, destProcessId);
1012 int Reduce(
const signed char *sendBuffer,
signed char *recvBuffer,
1014 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1017 int Reduce(
const float *sendBuffer,
float *recvBuffer,
1019 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1022 int Reduce(
const double *sendBuffer,
double *recvBuffer,
1024 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1027 #ifdef VTK_USE_64BIT_IDS
1030 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1033 #elif defined(VTK_TYPE_USE_LONG_LONG)
1034 int Reduce(
const long long *sendBuffer,
long long *recvBuffer,
1036 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1040 #ifdef VTK_TYPE_USE_LONG_LONG
1041 int Reduce(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
1043 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1048 int operation,
int destProcessId);
1055 int Reduce(
const int *sendBuffer,
int *recvBuffer,
1057 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1058 VTK_INT, operation, destProcessId);
1060 int Reduce(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
1062 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1065 int Reduce(
const short *sendBuffer,
short *recvBuffer,
1067 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1070 int Reduce(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
1072 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1075 int Reduce(
const long *sendBuffer,
long *recvBuffer,
1077 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1078 VTK_LONG, operation, destProcessId);
1080 int Reduce(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
1082 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1085 int Reduce(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
1087 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1090 int Reduce(
const char *sendBuffer,
char *recvBuffer,
1092 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1093 VTK_CHAR, operation, destProcessId);
1095 int Reduce(
const signed char *sendBuffer,
signed char *recvBuffer,
1097 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1100 int Reduce(
const float *sendBuffer,
float *recvBuffer,
1102 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1105 int Reduce(
const double *sendBuffer,
double *recvBuffer,
1107 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1110 #ifdef VTK_USE_64BIT_IDS
1113 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1116 #elif defined(VTK_TYPE_USE_LONG_LONG)
1117 int Reduce(
const long long *sendBuffer,
long long *recvBuffer,
1119 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1123 #ifdef VTK_TYPE_USE_LONG_LONG
1124 int Reduce(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
1126 return this->ReduceVoidArray(sendBuffer, recvBuffer, length,
1131 Operation *operation,
int destProcessId);
1139 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1142 int AllReduce(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
1144 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1149 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1152 int AllReduce(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
1154 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1159 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1162 int AllReduce(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
1164 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1167 int AllReduce(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
1169 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1174 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1177 int AllReduce(
const signed char *sendBuffer,
signed char *recvBuffer,
1179 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1184 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1189 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1192 #ifdef VTK_USE_64BIT_IDS
1195 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1198 #elif defined(VTK_TYPE_USE_LONG_LONG)
1199 int AllReduce(
const long long *sendBuffer,
long long *recvBuffer,
1201 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1205 #ifdef VTK_TYPE_USE_LONG_LONG
1206 int AllReduce(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
1208 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1216 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1219 int AllReduce(
const unsigned int *sendBuffer,
unsigned int *recvBuffer,
1221 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1226 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1229 int AllReduce(
const unsigned short *sendBuffer,
unsigned short *recvBuffer,
1231 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1236 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1239 int AllReduce(
const unsigned long *sendBuffer,
unsigned long *recvBuffer,
1241 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1244 int AllReduce(
const unsigned char *sendBuffer,
unsigned char *recvBuffer,
1246 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1251 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1254 int AllReduce(
const signed char *sendBuffer,
signed char *recvBuffer,
1256 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1261 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1266 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1269 #ifdef VTK_USE_64BIT_IDS
1272 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1275 #elif defined(VTK_TYPE_USE_LONG_LONG)
1276 int AllReduce(
const long long *sendBuffer,
long long *recvBuffer,
1278 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1282 #ifdef VTK_TYPE_USE_LONG_LONG
1283 int AllReduce(
const unsigned long long *sendBuffer,
unsigned long long *recvBuffer,
1285 return this->AllReduceVoidArray(sendBuffer, recvBuffer, length,
1290 Operation *operation);
1298 virtual int GatherVoidArray(
const void *sendBuffer,
void *recvBuffer,
1300 virtual int GatherVVoidArray(
const void *sendBuffer,
void *recvBuffer,
1303 virtual int ScatterVoidArray(
const void *sendBuffer,
void *recvBuffer,
1305 virtual int ScatterVVoidArray(
const void *sendBuffer,
void *recvBuffer,
1309 virtual int AllGatherVoidArray(
const void *sendBuffer,
void *recvBuffer,
1311 virtual int AllGatherVVoidArray(
const void *sendBuffer,
void *recvBuffer,
1314 virtual int ReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
1316 int operation,
int destProcessId);
1317 virtual int ReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
1319 Operation *operation,
int destProcessId);
1320 virtual int AllReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
1323 virtual int AllReduceVoidArray(
const void *sendBuffer,
void *recvBuffer,
1325 Operation *operation);
1328 static void SetUseCopy(
int useCopy);
1340 virtual int ComputeGlobalBounds(
int processorId,
int numProcesses,
1342 int *rightHasBounds = 0,
1343 int *leftHasBounds = 0,
1344 int hasBoundsTag = 288402,
1345 int localBoundsTag = 288403,
1346 int globalBoundsTag = 288404);
1354 static int GetParentProcessor(
int pid);
1355 static int GetLeftChildProcessor(
int pid);
1391 int remoteHandle,
int tag,
int type=-1);
1393 int remoteHandle,
int tag);
1394 int ReceiveMultiBlockDataSet(
1411 #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 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 Receive(unsigned char *data, vtkIdType maxlength, int remoteHandle, int tag)
int Scatter(const double *sendBuffer, double *recvBuffer, vtkIdType length, int srcProcessId)
stream used to pass data across processes using vtkMultiProcessController.
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
abstract class to specify dataset behavior
int Gather(const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int destProcessId)
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 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 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 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 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 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 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 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 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 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 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 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 AllGather(const short *sendBuffer, short *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 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 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 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 Broadcast(unsigned int *data, vtkIdType length, int srcProcessId)
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)