-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpi.h
2405 lines (1973 loc) · 114 KB
/
mpi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#if defined(__cplusplus)
extern "C" {
#endif
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
typedef long long int int64_t;
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long int uint64_t;
typedef signed char int_least8_t;
typedef short int int_least16_t;
typedef int int_least32_t;
typedef long long int int_least64_t;
typedef unsigned char uint_least8_t;
typedef unsigned short int uint_least16_t;
typedef unsigned int uint_least32_t;
typedef unsigned long long int uint_least64_t;
typedef signed char int_fast8_t;
typedef int int_fast16_t;
typedef int int_fast32_t;
typedef long long int int_fast64_t;
typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
typedef unsigned long long int uint_fast64_t;
typedef int intptr_t;
typedef unsigned int uintptr_t;
typedef long long int intmax_t;
typedef unsigned long long int uintmax_t;
typedef int MPI_Request;
typedef int MPI_Message;
typedef void (MPI_User_function) ( void *, void *, int *, MPI_Datatype * );
typedef int (MPI_Copy_function) ( MPI_Comm, int, void *, void *, void *, int * );
typedef int (MPI_Delete_function) ( MPI_Comm, int, void *, void * );
typedef int MPI_Datatype;
typedef int MPI_Comm;
typedef int MPI_Group;
typedef int MPI_Win;
typedef struct ADIOI_FileD *MPI_File;
typedef int MPI_Op;
typedef int MPI_Errhandler;
static const MPI_Comm MPI_COMM_NULL = ((MPI_Comm)0x04000000);
static const MPI_Op MPI_OP_NULL = ((MPI_Op)0x18000000);
static const MPI_Group MPI_GROUP_NULL = ((MPI_Group)0x08000000);
static const MPI_Datatype MPI_DATATYPE_NULL = ((MPI_Datatype)0x0c000000);
static const MPI_Request MPI_REQUEST_NULL = ((MPI_Request)0x2c000000);
static const MPI_Errhandler MPI_ERRHANDLER_NULL = ((MPI_Errhandler)0x14000000);
static const MPI_Message MPI_MESSAGE_NULL = ((MPI_Message)0x2c000000);
static const MPI_Message MPI_MESSAGE_NO_PROC = ((MPI_Message)0x6c000000);
static const int MPI_IDENT = 0;
static const int MPI_CONGRUENT = 1;
static const int MPI_SIMILAR = 2;
static const int MPI_UNEQUAL = 3;
static const MPI_Datatype MPI_CHAR = ((MPI_Datatype)0x4c000101);
static const MPI_Datatype MPI_SIGNED_CHAR = ((MPI_Datatype)0x4c000118);
static const MPI_Datatype MPI_UNSIGNED_CHAR = ((MPI_Datatype)0x4c000102);
static const MPI_Datatype MPI_BYTE = ((MPI_Datatype)0x4c00010d);
static const MPI_Datatype MPI_WCHAR = ((MPI_Datatype)0x4c00040e);
static const MPI_Datatype MPI_SHORT = ((MPI_Datatype)0x4c000203);
static const MPI_Datatype MPI_UNSIGNED_SHORT = ((MPI_Datatype)0x4c000204);
static const MPI_Datatype MPI_INT = ((MPI_Datatype)0x4c000405);
static const MPI_Datatype MPI_UNSIGNED = ((MPI_Datatype)0x4c000406);
static const MPI_Datatype MPI_LONG = ((MPI_Datatype)0x4c000407);
static const MPI_Datatype MPI_UNSIGNED_LONG = ((MPI_Datatype)0x4c000408);
static const MPI_Datatype MPI_FLOAT = ((MPI_Datatype)0x4c00040a);
static const MPI_Datatype MPI_DOUBLE = ((MPI_Datatype)0x4c00080b);
static const MPI_Datatype MPI_LONG_DOUBLE = ((MPI_Datatype)0x4c000c0c);
static const MPI_Datatype MPI_LONG_LONG_INT = ((MPI_Datatype)0x4c000809);
static const MPI_Datatype MPI_UNSIGNED_LONG_LONG = ((MPI_Datatype)0x4c000819);
static const MPI_Datatype MPI_LONG_LONG = MPI_LONG_LONG_INT;
static const MPI_Datatype MPI_PACKED = ((MPI_Datatype)0x4c00010f);
static const MPI_Datatype MPI_LB = ((MPI_Datatype)0x4c000010);
static const MPI_Datatype MPI_UB = ((MPI_Datatype)0x4c000011);
static const MPI_Datatype MPI_FLOAT_INT = ((MPI_Datatype)0x8c000000);
static const MPI_Datatype MPI_DOUBLE_INT = ((MPI_Datatype)0x8c000001);
static const MPI_Datatype MPI_LONG_INT = ((MPI_Datatype)0x8c000002);
static const MPI_Datatype MPI_SHORT_INT = ((MPI_Datatype)0x8c000003);
static const MPI_Datatype MPI_2INT = ((MPI_Datatype)0x4c000816);
static const MPI_Datatype MPI_LONG_DOUBLE_INT = ((MPI_Datatype)0x8c000004);
static const MPI_Datatype MPI_COMPLEX = ((MPI_Datatype)1275070494);
static const MPI_Datatype MPI_DOUBLE_COMPLEX = ((MPI_Datatype)1275072546);
static const MPI_Datatype MPI_LOGICAL = ((MPI_Datatype)1275069469);
static const MPI_Datatype MPI_REAL = ((MPI_Datatype)1275069468);
static const MPI_Datatype MPI_DOUBLE_PRECISION = ((MPI_Datatype)1275070495);
static const MPI_Datatype MPI_INTEGER = ((MPI_Datatype)1275069467);
static const MPI_Datatype MPI_2INTEGER = ((MPI_Datatype)1275070496);
static const MPI_Datatype MPI_2REAL = ((MPI_Datatype)1275070497);
static const MPI_Datatype MPI_2DOUBLE_PRECISION = ((MPI_Datatype)1275072547);
static const MPI_Datatype MPI_CHARACTER = ((MPI_Datatype)1275068698);
static const MPI_Datatype MPI_REAL4 = ((MPI_Datatype)0x4c000427);
static const MPI_Datatype MPI_REAL8 = ((MPI_Datatype)0x4c000829);
static const MPI_Datatype MPI_REAL16 = ((MPI_Datatype)MPI_DATATYPE_NULL);
static const MPI_Datatype MPI_COMPLEX8 = ((MPI_Datatype)0x4c000828);
static const MPI_Datatype MPI_COMPLEX16 = ((MPI_Datatype)0x4c00102a);
static const MPI_Datatype MPI_COMPLEX32 = ((MPI_Datatype)MPI_DATATYPE_NULL);
static const MPI_Datatype MPI_INTEGER1 = ((MPI_Datatype)0x4c00012d);
static const MPI_Datatype MPI_INTEGER2 = ((MPI_Datatype)0x4c00022f);
static const MPI_Datatype MPI_INTEGER4 = ((MPI_Datatype)0x4c000430);
static const MPI_Datatype MPI_INTEGER8 = ((MPI_Datatype)0x4c000831);
static const MPI_Datatype MPI_INTEGER16 = ((MPI_Datatype)MPI_DATATYPE_NULL);
static const MPI_Datatype MPI_INT8_T = ((MPI_Datatype)0x4c000137);
static const MPI_Datatype MPI_INT16_T = ((MPI_Datatype)0x4c000238);
static const MPI_Datatype MPI_INT32_T = ((MPI_Datatype)0x4c000439);
static const MPI_Datatype MPI_INT64_T = ((MPI_Datatype)0x4c00083a);
static const MPI_Datatype MPI_UINT8_T = ((MPI_Datatype)0x4c00013b);
static const MPI_Datatype MPI_UINT16_T = ((MPI_Datatype)0x4c00023c);
static const MPI_Datatype MPI_UINT32_T = ((MPI_Datatype)0x4c00043d);
static const MPI_Datatype MPI_UINT64_T = ((MPI_Datatype)0x4c00083e);
static const MPI_Datatype MPI_C_BOOL = ((MPI_Datatype)0x4c00013f);
static const MPI_Datatype MPI_C_FLOAT_COMPLEX = ((MPI_Datatype)0x4c000840);
static const MPI_Datatype MPI_C_COMPLEX = MPI_C_FLOAT_COMPLEX;
static const MPI_Datatype MPI_C_DOUBLE_COMPLEX = ((MPI_Datatype)0x4c001041);
static const MPI_Datatype MPI_C_LONG_DOUBLE_COMPLEX = ((MPI_Datatype)0x4c001842);
static const MPI_Datatype MPI_AINT = ((MPI_Datatype)0x4c000443);
static const MPI_Datatype MPI_OFFSET = ((MPI_Datatype)0x4c000844);
static const MPI_Datatype MPI_COUNT = ((MPI_Datatype)0x4c000845);
static const MPI_Datatype MPI_CXX_BOOL = ((MPI_Datatype)0x4c000133);
static const MPI_Datatype MPI_CXX_FLOAT_COMPLEX = ((MPI_Datatype)0x4c000834);
static const MPI_Datatype MPI_CXX_DOUBLE_COMPLEX = ((MPI_Datatype)0x4c001035);
static const MPI_Datatype MPI_CXX_LONG_DOUBLE_COMPLEX = ((MPI_Datatype)0x4c001836);
static const int MPI_TYPECLASS_REAL = 1;
static const int MPI_TYPECLASS_INTEGER = 2;
static const int MPI_TYPECLASS_COMPLEX = 3;
static const MPI_Comm MPI_COMM_WORLD = ((MPI_Comm)0x44000000);
static const MPI_Comm MPI_COMM_SELF = ((MPI_Comm)0x44000001);
static const MPI_Group MPI_GROUP_EMPTY = ((MPI_Group)0x48000000);
static const MPI_Win MPI_WIN_NULL = ((MPI_Win)0x20000000);
static const MPI_File MPI_FILE_NULL = ((MPI_File)0);
static const MPI_Op MPI_MAX = (MPI_Op)(0x58000001);
static const MPI_Op MPI_MIN = (MPI_Op)(0x58000002);
static const MPI_Op MPI_SUM = (MPI_Op)(0x58000003);
static const MPI_Op MPI_PROD = (MPI_Op)(0x58000004);
static const MPI_Op MPI_LAND = (MPI_Op)(0x58000005);
static const MPI_Op MPI_BAND = (MPI_Op)(0x58000006);
static const MPI_Op MPI_LOR = (MPI_Op)(0x58000007);
static const MPI_Op MPI_BOR = (MPI_Op)(0x58000008);
static const MPI_Op MPI_LXOR = (MPI_Op)(0x58000009);
static const MPI_Op MPI_BXOR = (MPI_Op)(0x5800000a);
static const MPI_Op MPI_MINLOC = (MPI_Op)(0x5800000b);
static const MPI_Op MPI_MAXLOC = (MPI_Op)(0x5800000c);
static const MPI_Op MPI_REPLACE = (MPI_Op)(0x5800000d);
static const MPI_Op MPI_NO_OP = (MPI_Op)(0x5800000e);
static const int MPI_TAG_UB = 0x64400001;
static const int MPI_HOST = 0x64400003;
static const int MPI_IO = 0x64400005;
static const int MPI_WTIME_IS_GLOBAL = 0x64400007;
static const int MPI_UNIVERSE_SIZE = 0x64400009;
static const int MPI_LASTUSEDCODE = 0x6440000b;
static const int MPI_APPNUM = 0x6440000d;
static const int MPI_WIN_BASE = 0x66000001;
static const int MPI_WIN_SIZE = 0x66000003;
static const int MPI_WIN_DISP_UNIT = 0x66000005;
static const int MPI_WIN_CREATE_FLAVOR = 0x66000007;
static const int MPI_WIN_MODEL = 0x66000009;
static const int MPI_MAX_PROCESSOR_NAME = 128;
static const int MPI_MAX_LIBRARY_VERSION_STRING = 8192;
static const int MPI_MAX_ERROR_STRING = 512;
static const int MPI_MAX_PORT_NAME = 256;
static const int MPI_MAX_OBJECT_NAME = 128;
static const int MPI_UNDEFINED = (-32766);
static const int MPI_KEYVAL_INVALID = 0x24000000;
typedef enum MPIR_Win_flavor {
MPI_WIN_FLAVOR_CREATE = 1,
MPI_WIN_FLAVOR_ALLOCATE = 2,
MPI_WIN_FLAVOR_DYNAMIC = 3,
MPI_WIN_FLAVOR_SHARED = 4
} MPIR_Win_flavor_t;
typedef enum MPIR_Win_model {
MPI_WIN_SEPARATE = 1,
MPI_WIN_UNIFIED = 2
} MPIR_Win_model_t;
static const int MPI_BSEND_OVERHEAD = 56;
typedef enum MPIR_Topo_type { MPI_GRAPH=1, MPI_CART=2, MPI_DIST_GRAPH=3 } MPIR_Topo_type;
static const void * MPI_BOTTOM = (void *)0;
extern int * const MPI_UNWEIGHTED;
extern int * const MPI_WEIGHTS_EMPTY;
static const int MPI_PROC_NULL = (-1);
static const int MPI_ANY_SOURCE = (-2);
static const int MPI_ROOT = (-3);
static const int MPI_ANY_TAG = (-1);
static const int MPI_LOCK_EXCLUSIVE = 234;
static const int MPI_LOCK_SHARED = 235;
typedef void (MPI_Handler_function) ( MPI_Comm *, int *, ... );
typedef int (MPI_Comm_copy_attr_function)(MPI_Comm, int, void *, void *,
void *, int *);
typedef int (MPI_Comm_delete_attr_function)(MPI_Comm, int, void *, void *);
typedef int (MPI_Type_copy_attr_function)(MPI_Datatype, int, void *, void *,
void *, int *);
typedef int (MPI_Type_delete_attr_function)(MPI_Datatype, int, void *, void *);
typedef int (MPI_Win_copy_attr_function)(MPI_Win, int, void *, void *, void *,
int *);
typedef int (MPI_Win_delete_attr_function)(MPI_Win, int, void *, void *);
typedef void (MPI_Comm_errhandler_function)(MPI_Comm *, int *, ...);
typedef void (MPI_File_errhandler_function)(MPI_File *, int *, ...);
typedef void (MPI_Win_errhandler_function)(MPI_Win *, int *, ...);
typedef MPI_Comm_errhandler_function MPI_Comm_errhandler_fn;
typedef MPI_File_errhandler_function MPI_File_errhandler_fn;
typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn;
static const MPI_Errhandler MPI_ERRORS_ARE_FATAL = ((MPI_Errhandler)0x54000000);
static const MPI_Errhandler MPI_ERRORS_RETURN = ((MPI_Errhandler)0x54000001);
static const MPI_Errhandler MPIR_ERRORS_THROW_EXCEPTIONS = ((MPI_Errhandler)0x54000002);
static const MPI_Copy_function * MPI_NULL_COPY_FN = ((MPI_Copy_function *)0);
static const MPI_Delete_function * MPI_NULL_DELETE_FN = ((MPI_Delete_function *)0);
static const MPI_Comm_copy_attr_function* MPI_COMM_NULL_COPY_FN = ((MPI_Comm_copy_attr_function*)0);
static const MPI_Comm_delete_attr_function* MPI_COMM_NULL_DELETE_FN = ((MPI_Comm_delete_attr_function*)0);
static const MPI_Comm_copy_attr_function * MPI_COMM_DUP_FN = ((MPI_Comm_copy_attr_function *)MPIR_Dup_fn);
static const MPI_Win_copy_attr_function* MPI_WIN_NULL_COPY_FN = ((MPI_Win_copy_attr_function*)0);
static const MPI_Win_delete_attr_function* MPI_WIN_NULL_DELETE_FN = ((MPI_Win_delete_attr_function*)0);
static const MPI_Win_copy_attr_function* MPI_WIN_DUP_FN = ((MPI_Win_copy_attr_function*)MPIR_Dup_fn);
static const MPI_Type_copy_attr_function* MPI_TYPE_NULL_COPY_FN = ((MPI_Type_copy_attr_function*)0);
static const MPI_Type_delete_attr_function* MPI_TYPE_NULL_DELETE_FN = ((MPI_Type_delete_attr_function*)0);
static const MPI_Type_copy_attr_function* MPI_TYPE_DUP_FN = ((MPI_Type_copy_attr_function*)MPIR_Dup_fn);
static const int MPI_VERSION = 3;
static const int MPI_SUBVERSION = 1;
static const int MPICH_NAME = 3;
static const int MPICH = 1;
static const int MPICH_HAS_C2F = 1;
static const char const* MPICH_VERSION = "3.2";
static const int MPICH_NUMVERSION = 30200300;
static const int MPICH_RELEASE_TYPE_ALPHA = 0;
static const int MPICH_RELEASE_TYPE_BETA = 1;
static const int MPICH_RELEASE_TYPE_RC = 2;
static const int MPICH_RELEASE_TYPE_PATCH = 3;
enum MPIR_Combiner_enum {
MPI_COMBINER_NAMED = 1,
MPI_COMBINER_DUP = 2,
MPI_COMBINER_CONTIGUOUS = 3,
MPI_COMBINER_VECTOR = 4,
MPI_COMBINER_HVECTOR_INTEGER = 5,
MPI_COMBINER_HVECTOR = 6,
MPI_COMBINER_INDEXED = 7,
MPI_COMBINER_HINDEXED_INTEGER = 8,
MPI_COMBINER_HINDEXED = 9,
MPI_COMBINER_INDEXED_BLOCK = 10,
MPI_COMBINER_STRUCT_INTEGER = 11,
MPI_COMBINER_STRUCT = 12,
MPI_COMBINER_SUBARRAY = 13,
MPI_COMBINER_DARRAY = 14,
MPI_COMBINER_F90_REAL = 15,
MPI_COMBINER_F90_COMPLEX = 16,
MPI_COMBINER_F90_INTEGER = 17,
MPI_COMBINER_RESIZED = 18,
MPI_COMBINER_HINDEXED_BLOCK = 19
};
typedef int MPI_Info;
static const MPI_INFO MPI_INFO_NULL = ((MPI_Info)0x1c000000);
static const MPI_INFO MPI_INFO_ENV = ((MPI_Info)0x5c000001);
static const int MPI_MAX_INFO_KEY = 255;
static const int MPI_MAX_INFO_VAL = 1024;
static const int MPI_ORDER_C = 56;
static const int MPI_ORDER_FORTRAN = 57;
static const int MPI_DISTRIBUTE_BLOCK = 121;
static const int MPI_DISTRIBUTE_CYCLIC = 122;
static const int MPI_DISTRIBUTE_NONE = 123;
static const int MPI_DISTRIBUTE_DFLT_DARG = -49767;
static const void * MPI_IN_PLACE = (void *) -1;
static const int MPI_MODE_NOCHECK = 1024;
static const int MPI_MODE_NOSTORE = 2048;
static const int MPI_MODE_NOPUT = 4096;
static const int MPI_MODE_NOPRECEDE = 8192;
static const int MPI_MODE_NOSUCCEED = 16384;
static const int MPI_COMM_TYPE_SHARED = 1;
typedef int MPI_Aint;
typedef int MPI_Fint;
typedef long long MPI_Count;
static const char const* MPI_AINT_FMT_DEC_SPEC = "%d";
static const char const* MPI_AINT_FMT_HEX_SPEC = "%x";
typedef long long MPI_Offset;
typedef struct MPI_Status {
int count_lo;
int count_hi_and_cancelled;
int MPI_SOURCE;
int MPI_TAG;
int MPI_ERROR;
} MPI_Status;
struct MPIR_T_enum_s;
struct MPIR_T_cvar_handle_s;
struct MPIR_T_pvar_handle_s;
struct MPIR_T_pvar_session_s;
typedef struct MPIR_T_enum_s * MPI_T_enum;
typedef struct MPIR_T_cvar_handle_s * MPI_T_cvar_handle;
typedef struct MPIR_T_pvar_handle_s * MPI_T_pvar_handle;
typedef struct MPIR_T_pvar_session_s * MPI_T_pvar_session;
extern struct MPIR_T_pvar_handle_s * const MPI_T_PVAR_ALL_HANDLES;
static const MPI_T_enum MPI_T_ENUM_NULL = ((MPI_T_enum)NULL);
static const MPI_T_cvar_handle MPI_T_CVAR_HANDLE_NULL = ((MPI_T_cvar_handle)NULL);
static const MPI_T_pvar_handle MPI_T_PVAR_HANDLE_NULL = ((MPI_T_pvar_handle)NULL);
static const MPI_T_pvar_session MPI_T_PVAR_SESSION_NULL = ((MPI_T_pvar_session)NULL);
typedef enum MPIR_T_verbosity_t {
MPIX_T_VERBOSITY_INVALID = 0,
MPI_T_VERBOSITY_USER_BASIC = 221,
MPI_T_VERBOSITY_USER_DETAIL,
MPI_T_VERBOSITY_USER_ALL,
MPI_T_VERBOSITY_TUNER_BASIC,
MPI_T_VERBOSITY_TUNER_DETAIL,
MPI_T_VERBOSITY_TUNER_ALL,
MPI_T_VERBOSITY_MPIDEV_BASIC,
MPI_T_VERBOSITY_MPIDEV_DETAIL,
MPI_T_VERBOSITY_MPIDEV_ALL
} MPIR_T_verbosity_t;
typedef enum MPIR_T_bind_t {
MPIX_T_BIND_INVALID = 0,
MPI_T_BIND_NO_OBJECT = 9700,
MPI_T_BIND_MPI_COMM,
MPI_T_BIND_MPI_DATATYPE,
MPI_T_BIND_MPI_ERRHANDLER,
MPI_T_BIND_MPI_FILE,
MPI_T_BIND_MPI_GROUP,
MPI_T_BIND_MPI_OP,
MPI_T_BIND_MPI_REQUEST,
MPI_T_BIND_MPI_WIN,
MPI_T_BIND_MPI_MESSAGE,
MPI_T_BIND_MPI_INFO
} MPIR_T_bind_t;
typedef enum MPIR_T_scope_t {
MPIX_T_SCOPE_INVALID = 0,
MPI_T_SCOPE_CONSTANT = 60438,
MPI_T_SCOPE_READONLY,
MPI_T_SCOPE_LOCAL,
MPI_T_SCOPE_GROUP,
MPI_T_SCOPE_GROUP_EQ,
MPI_T_SCOPE_ALL,
MPI_T_SCOPE_ALL_EQ
} MPIR_T_scope_t;
typedef enum MPIR_T_pvar_class_t {
MPIX_T_PVAR_CLASS_INVALID = 0,
MPIR_T_PVAR_CLASS_FIRST = 240,
MPI_T_PVAR_CLASS_STATE = MPIR_T_PVAR_CLASS_FIRST,
MPI_T_PVAR_CLASS_LEVEL,
MPI_T_PVAR_CLASS_SIZE,
MPI_T_PVAR_CLASS_PERCENTAGE,
MPI_T_PVAR_CLASS_HIGHWATERMARK,
MPI_T_PVAR_CLASS_LOWWATERMARK,
MPI_T_PVAR_CLASS_COUNTER,
MPI_T_PVAR_CLASS_AGGREGATE,
MPI_T_PVAR_CLASS_TIMER,
MPI_T_PVAR_CLASS_GENERIC,
MPIR_T_PVAR_CLASS_LAST,
MPIR_T_PVAR_CLASS_NUMBER = MPIR_T_PVAR_CLASS_LAST - MPIR_T_PVAR_CLASS_FIRST
} MPIR_T_pvar_class_t;
#@
template MPI_Comm_c2f(comm: untyped): untyped =
cast[MPI_Fint](comm)
template MPI_Comm_f2c(comm: untyped): untyped =
cast[MPI_Comm](comm)
template MPI_Type_c2f(datatype: untyped): untyped =
cast[MPI_Fint](datatype)
template MPI_Type_f2c(datatype: untyped): untyped =
cast[MPI_Datatype](datatype)
template MPI_Group_c2f(group: untyped): untyped =
cast[MPI_Fint](group)
template MPI_Group_f2c(group: untyped): untyped =
cast[MPI_Group](group)
template MPI_Info_c2f(info: untyped): untyped =
cast[MPI_Fint](info)
template MPI_Info_f2c(info: untyped): untyped =
cast[MPI_Info](info)
template MPI_Request_f2c(request: untyped): untyped =
cast[MPI_Request](request)
template MPI_Request_c2f(request: untyped): untyped =
cast[MPI_Fint](request)
template MPI_Op_c2f(op: untyped): untyped =
cast[MPI_Fint](op)
template MPI_Op_f2c(op: untyped): untyped =
cast[MPI_Op](op)
template MPI_Errhandler_c2f(errhandler: untyped): untyped =
cast[MPI_Fint](errhandler)
template MPI_Errhandler_f2c(errhandler: untyped): untyped =
cast[MPI_Errhandler](errhandler)
template MPI_Win_c2f(win: untyped): untyped =
cast[MPI_Fint](win)
template MPI_Win_f2c(win: untyped): untyped =
cast[MPI_Win](win)
template MPI_Message_c2f(msg: untyped): untyped =
cast[MPI_Fint](msg)
template MPI_Message_f2c(msg: untyped): untyped =
cast[MPI_Message](msg)
@#
#@
template PMPI_Comm_c2f(comm: untyped): untyped =
cast[MPI_Fint](comm)
template PMPI_Comm_f2c(comm: untyped): untyped =
cast[MPI_Comm](comm)
template PMPI_Type_c2f(datatype: untyped): untyped =
cast[MPI_Fint](datatype)
template PMPI_Type_f2c(datatype: untyped): untyped =
cast[MPI_Datatype](datatype)
template PMPI_Group_c2f(group: untyped): untyped =
cast[MPI_Fint](group)
template PMPI_Group_f2c(group: untyped): untyped =
cast[MPI_Group](group)
template PMPI_Info_c2f(info: untyped): untyped =
cast[MPI_Fint](info)
template PMPI_Info_f2c(info: untyped): untyped =
cast[MPI_Info](info)
template PMPI_Request_f2c(request: untyped): untyped =
cast[MPI_Request](request)
template PMPI_Request_c2f(request: untyped): untyped =
cast[MPI_Fint](request)
template PMPI_Op_c2f(op: untyped): untyped =
cast[MPI_Fint](op)
template PMPI_Op_f2c(op: untyped): untyped =
cast[MPI_Op](op)
template PMPI_Errhandler_c2f(errhandler: untyped): untyped =
cast[MPI_Fint](errhandler)
template PMPI_Errhandler_f2c(errhandler: untyped): untyped =
cast[MPI_Errhandler](errhandler)
template PMPI_Win_c2f(win: untyped): untyped =
cast[MPI_Fint](win)
template PMPI_Win_f2c(win: untyped): untyped =
cast[MPI_Win](win)
template PMPI_Message_c2f(msg: untyped): untyped =
cast[MPI_Fint](msg)
template PMPI_Message_f2c(msg: untyped): untyped =
cast[MPI_Message](msg)
@#
static const MPI_Status* MPI_STATUS_IGNORE = (MPI_Status *)1;
static const MPI_Status* MPI_STATUSES_IGNORE = (MPI_Status *)1;
static const int * MPI_ERRCODES_IGNORE = (int *)0;
extern MPI_Fint * MPI_F_STATUS_IGNORE;
extern MPI_Fint * MPI_F_STATUSES_IGNORE;
static const char** MPI_ARGV_NULL = (char **)0;
static const char*** MPI_ARGVS_NULL = (char ***)0;
typedef struct {
MPI_Fint count_lo;
MPI_Fint count_hi_and_cancelled;
MPI_Fint MPI_SOURCE;
MPI_Fint MPI_TAG;
MPI_Fint MPI_ERROR;
} MPI_F08_Status;
extern MPI_F08_Status MPIR_F08_MPI_STATUS_IGNORE_OBJ;
extern MPI_F08_Status MPIR_F08_MPI_STATUSES_IGNORE_OBJ[1];
extern int MPIR_F08_MPI_IN_PLACE;
extern int MPIR_F08_MPI_BOTTOM;
extern MPI_F08_Status *MPI_F08_STATUS_IGNORE;
extern MPI_F08_Status *MPI_F08_STATUSES_IGNORE;
static const int MPI_THREAD_SINGLE = 0;
static const int MPI_THREAD_FUNNELED = 1;
static const int MPI_THREAD_SERIALIZED = 2;
static const int MPI_THREAD_MULTIPLE = 3;
typedef int (MPI_Grequest_cancel_function)(void *, int);
typedef int (MPI_Grequest_free_function)(void *);
typedef int (MPI_Grequest_query_function)(void *, MPI_Status *);
typedef int (MPIX_Grequest_poll_function)(void *, MPI_Status *);
typedef int (MPIX_Grequest_wait_function)(int, void **, double, MPI_Status *);
static const int MPI_SUCCESS = 0;
static const int MPI_ERR_BUFFER = 1;
static const int MPI_ERR_COUNT = 2;
static const int MPI_ERR_TYPE = 3;
static const int MPI_ERR_TAG = 4;
static const int MPI_ERR_COMM = 5;
static const int MPI_ERR_RANK = 6;
static const int MPI_ERR_ROOT = 7;
static const int MPI_ERR_TRUNCATE = 14;
static const int MPI_ERR_GROUP = 8;
static const int MPI_ERR_OP = 9;
static const int MPI_ERR_REQUEST = 19;
static const int MPI_ERR_TOPOLOGY = 10;
static const int MPI_ERR_DIMS = 11;
static const int MPI_ERR_ARG = 12;
static const int MPI_ERR_OTHER = 15;
static const int MPI_ERR_UNKNOWN = 13;
static const int MPI_ERR_INTERN = 16;
static const int MPI_ERR_IN_STATUS = 17;
static const int MPI_ERR_PENDING = 18;
static const int MPI_ERR_ACCESS = 20;
static const int MPI_ERR_AMODE = 21;
static const int MPI_ERR_BAD_FILE = 22;
static const int MPI_ERR_CONVERSION = 23;
static const int MPI_ERR_DUP_DATAREP = 24;
static const int MPI_ERR_FILE_EXISTS = 25;
static const int MPI_ERR_FILE_IN_USE = 26;
static const int MPI_ERR_FILE = 27;
static const int MPI_ERR_IO = 32;
static const int MPI_ERR_NO_SPACE = 36;
static const int MPI_ERR_NO_SUCH_FILE = 37;
static const int MPI_ERR_READ_ONLY = 40;
static const int MPI_ERR_UNSUPPORTED_DATAREP = 43;
static const int MPI_ERR_INFO = 28;
static const int MPI_ERR_INFO_KEY = 29;
static const int MPI_ERR_INFO_VALUE = 30;
static const int MPI_ERR_INFO_NOKEY = 31;
static const int MPI_ERR_NAME = 33;
static const int MPI_ERR_NO_MEM = 34;
static const int MPI_ERR_NOT_SAME = 35;
static const int MPI_ERR_PORT = 38;
static const int MPI_ERR_QUOTA = 39;
static const int MPI_ERR_SERVICE = 41;
static const int MPI_ERR_SPAWN = 42;
static const int MPI_ERR_UNSUPPORTED_OPERATION= 44;
static const int MPI_ERR_WIN = 45;
static const int MPI_ERR_BASE = 46;
static const int MPI_ERR_LOCKTYPE = 47;
static const int MPI_ERR_KEYVAL = 48;
static const int MPI_ERR_RMA_CONFLICT= 49;
static const int MPI_ERR_RMA_SYNC = 50;
static const int MPI_ERR_SIZE = 51;
static const int MPI_ERR_DISP = 52;
static const int MPI_ERR_ASSERT = 53;
static const int MPI_ERR_RMA_RANGE = 55;
static const int MPI_ERR_RMA_ATTACH= 56;
static const int MPI_ERR_RMA_SHARED= 57;
static const int MPI_ERR_RMA_FLAVOR= 58;
static const int MPI_T_ERR_MEMORY = 59;
static const int MPI_T_ERR_NOT_INITIALIZED = 60;
static const int MPI_T_ERR_CANNOT_INIT = 61;
static const int MPI_T_ERR_INVALID_INDEX = 62;
static const int MPI_T_ERR_INVALID_ITEM = 63;
static const int MPI_T_ERR_INVALID_HANDLE = 64;
static const int MPI_T_ERR_OUT_OF_HANDLES = 65;
static const int MPI_T_ERR_OUT_OF_SESSIONS = 66;
static const int MPI_T_ERR_INVALID_SESSION = 67;
static const int MPI_T_ERR_CVAR_SET_NOT_NOW = 68;
static const int MPI_T_ERR_CVAR_SET_NEVER = 69;
static const int MPI_T_ERR_PVAR_NO_STARTSTOP= 70;
static const int MPI_T_ERR_PVAR_NO_WRITE = 71;
static const int MPI_T_ERR_PVAR_NO_ATOMIC = 72;
static const int MPI_T_ERR_INVALID_NAME = 73;
static const int MPI_T_ERR_INVALID = 74;
static const int MPI_ERR_LASTCODE = 0x3fffffff;
static const int MPICH_ERR_LAST_CLASS = 74;
static const int MPICH_ERR_FIRST_MPIX = 100;
static const int MPIX_ERR_PROC_FAILED = MPICH_ERR_FIRST_MPIX+1;
static const int MPIX_ERR_PROC_FAILED_PENDING = MPICH_ERR_FIRST_MPIX+2;
static const int MPIX_ERR_REVOKED = MPICH_ERR_FIRST_MPIX+3;
static const int MPICH_ERR_LAST_MPIX = MPICH_ERR_FIRST_MPIX+3;
typedef int (MPI_Datarep_conversion_function)(void *, MPI_Datatype, int,
void *, MPI_Offset, void *);
typedef int (MPI_Datarep_extent_function)(MPI_Datatype datatype, MPI_Aint *,
void *);
static const MPI_Datarep_conversion_function *MPI_CONVERSION_FN_NULL = ((MPI_Datarep_conversion_function *)0);
int MPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm) ;
int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int source, int tag,
MPI_Comm comm, MPI_Status *status) ;
int MPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count);
int MPI_Bsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm) ;
int MPI_Ssend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm) ;
int MPI_Rsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm) ;
int MPI_Buffer_attach(void *buffer, int size);
int MPI_Buffer_detach(void *buffer_addr, int *size);
int MPI_Isend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Ibsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Irsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int source, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Wait(MPI_Request *request, MPI_Status *status);
int MPI_Test(MPI_Request *request, int *flag, MPI_Status *status);
int MPI_Request_free(MPI_Request *request);
int MPI_Waitany(int count, MPI_Request array_of_requests[], int *indx, MPI_Status *status);
int MPI_Testany(int count, MPI_Request array_of_requests[], int *indx, int *flag,
MPI_Status *status);
int MPI_Waitall(int count, MPI_Request array_of_requests[], MPI_Status array_of_statuses[]);
int MPI_Testall(int count, MPI_Request array_of_requests[], int *flag,
MPI_Status array_of_statuses[]);
int MPI_Waitsome(int incount, MPI_Request array_of_requests[], int *outcount,
int array_of_indices[], MPI_Status array_of_statuses[]);
int MPI_Testsome(int incount, MPI_Request array_of_requests[], int *outcount,
int array_of_indices[], MPI_Status array_of_statuses[]);
int MPI_Iprobe(int source, int tag, MPI_Comm comm, int *flag, MPI_Status *status);
int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status *status);
int MPI_Cancel(MPI_Request *request);
int MPI_Test_cancelled(const MPI_Status *status, int *flag);
int MPI_Send_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Bsend_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Ssend_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Rsend_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Recv_init(void *buf, int count, MPI_Datatype datatype, int source, int tag,
MPI_Comm comm, MPI_Request *request) ;
int MPI_Start(MPI_Request *request);
int MPI_Startall(int count, MPI_Request array_of_requests[]);
int MPI_Sendrecv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, int dest,
int sendtag, void *recvbuf, int recvcount, MPI_Datatype recvtype,
int source, int recvtag, MPI_Comm comm, MPI_Status *status)
;
int MPI_Sendrecv_replace(void *buf, int count, MPI_Datatype datatype, int dest,
int sendtag, int source, int recvtag, MPI_Comm comm,
MPI_Status *status) ;
int MPI_Type_contiguous(int count, MPI_Datatype oldtype, MPI_Datatype *newtype);
int MPI_Type_vector(int count, int blocklength, int stride, MPI_Datatype oldtype,
MPI_Datatype *newtype);
int MPI_Type_hvector(int count, int blocklength, MPI_Aint stride, MPI_Datatype oldtype,
MPI_Datatype *newtype);
int MPI_Type_indexed(int count, const int *array_of_blocklengths,
const int *array_of_displacements, MPI_Datatype oldtype,
MPI_Datatype *newtype);
int MPI_Type_hindexed(int count, const int *array_of_blocklengths,
const MPI_Aint *array_of_displacements, MPI_Datatype oldtype,
MPI_Datatype *newtype);
int MPI_Type_struct(int count, const int *array_of_blocklengths,
const MPI_Aint *array_of_displacements,
const MPI_Datatype *array_of_types, MPI_Datatype *newtype);
int MPI_Address(const void *location, MPI_Aint *address);
int MPI_Type_extent(MPI_Datatype datatype, MPI_Aint *extent);
int MPI_Type_size(MPI_Datatype datatype, int *size);
int MPI_Type_lb(MPI_Datatype datatype, MPI_Aint *displacement);
int MPI_Type_ub(MPI_Datatype datatype, MPI_Aint *displacement);
int MPI_Type_commit(MPI_Datatype *datatype);
int MPI_Type_free(MPI_Datatype *datatype);
int MPI_Get_elements(const MPI_Status *status, MPI_Datatype datatype, int *count);
int MPI_Pack(const void *inbuf, int incount, MPI_Datatype datatype, void *outbuf,
int outsize, int *position, MPI_Comm comm) ;
int MPI_Unpack(const void *inbuf, int insize, int *position, void *outbuf, int outcount,
MPI_Datatype datatype, MPI_Comm comm) ;
int MPI_Pack_size(int incount, MPI_Datatype datatype, MPI_Comm comm, int *size);
int MPI_Barrier(MPI_Comm comm);
int MPI_Bcast(void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm)
;
int MPI_Gather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm)
;
int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root,
MPI_Comm comm)
;
int MPI_Scatter(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm)
;
int MPI_Scatterv(const void *sendbuf, const int *sendcounts, const int *displs,
MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype,
int root, MPI_Comm comm)
;
int MPI_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
int recvcount, MPI_Datatype recvtype, MPI_Comm comm)
;
int MPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPI_Comm comm)
;
int MPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
int recvcount, MPI_Datatype recvtype, MPI_Comm comm)
;
int MPI_Alltoallv(const void *sendbuf, const int *sendcounts, const int *sdispls,
MPI_Datatype sendtype, void *recvbuf, const int *recvcounts,
const int *rdispls, MPI_Datatype recvtype, MPI_Comm comm)
;
int MPI_Alltoallw(const void *sendbuf, const int sendcounts[], const int sdispls[],
const MPI_Datatype sendtypes[], void *recvbuf, const int recvcounts[],
const int rdispls[], const MPI_Datatype recvtypes[], MPI_Comm comm);
int MPI_Exscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
MPI_Op op, MPI_Comm comm)
;
int MPI_Reduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
MPI_Op op, int root, MPI_Comm comm)
;
int MPI_Op_create(MPI_User_function *user_fn, int commute, MPI_Op *op);
int MPI_Op_free(MPI_Op *op);
int MPI_Allreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
MPI_Op op, MPI_Comm comm)
;
int MPI_Reduce_scatter(const void *sendbuf, void *recvbuf, const int recvcounts[],
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
;
int MPI_Scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op,
MPI_Comm comm)
;
int MPI_Group_size(MPI_Group group, int *size);
int MPI_Group_rank(MPI_Group group, int *rank);
int MPI_Group_translate_ranks(MPI_Group group1, int n, const int ranks1[], MPI_Group group2,
int ranks2[]);
int MPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result);
int MPI_Comm_group(MPI_Comm comm, MPI_Group *group);
int MPI_Group_union(MPI_Group group1, MPI_Group group2, MPI_Group *newgroup);
int MPI_Group_intersection(MPI_Group group1, MPI_Group group2, MPI_Group *newgroup);
int MPI_Group_difference(MPI_Group group1, MPI_Group group2, MPI_Group *newgroup);
int MPI_Group_incl(MPI_Group group, int n, const int ranks[], MPI_Group *newgroup);
int MPI_Group_excl(MPI_Group group, int n, const int ranks[], MPI_Group *newgroup);
int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3], MPI_Group *newgroup);
int MPI_Group_range_excl(MPI_Group group, int n, int ranges[][3], MPI_Group *newgroup);
int MPI_Group_free(MPI_Group *group);
int MPI_Comm_size(MPI_Comm comm, int *size);
int MPI_Comm_rank(MPI_Comm comm, int *rank);
int MPI_Comm_compare(MPI_Comm comm1, MPI_Comm comm2, int *result);
int MPI_Comm_dup(MPI_Comm comm, MPI_Comm *newcomm);
int MPI_Comm_dup_with_info(MPI_Comm comm, MPI_Info info, MPI_Comm *newcomm);
int MPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm *newcomm);
int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *newcomm);
int MPI_Comm_free(MPI_Comm *comm);
int MPI_Comm_test_inter(MPI_Comm comm, int *flag);
int MPI_Comm_remote_size(MPI_Comm comm, int *size);
int MPI_Comm_remote_group(MPI_Comm comm, MPI_Group *group);
int MPI_Intercomm_create(MPI_Comm local_comm, int local_leader, MPI_Comm peer_comm,
int remote_leader, int tag, MPI_Comm *newintercomm);
int MPI_Intercomm_merge(MPI_Comm intercomm, int high, MPI_Comm *newintracomm);
int MPI_Keyval_create(MPI_Copy_function *copy_fn, MPI_Delete_function *delete_fn,
int *keyval, void *extra_state);
int MPI_Keyval_free(int *keyval);
int MPI_Attr_put(MPI_Comm comm, int keyval, void *attribute_val);
int MPI_Attr_get(MPI_Comm comm, int keyval, void *attribute_val, int *flag);
int MPI_Attr_delete(MPI_Comm comm, int keyval);
int MPI_Topo_test(MPI_Comm comm, int *status);
int MPI_Cart_create(MPI_Comm comm_old, int ndims, const int dims[], const int periods[],
int reorder, MPI_Comm *comm_cart);
int MPI_Dims_create(int nnodes, int ndims, int dims[]);
int MPI_Graph_create(MPI_Comm comm_old, int nnodes, const int indx[], const int edges[],
int reorder, MPI_Comm *comm_graph);
int MPI_Graphdims_get(MPI_Comm comm, int *nnodes, int *nedges);
int MPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges, int indx[], int edges[]);
int MPI_Cartdim_get(MPI_Comm comm, int *ndims);
int MPI_Cart_get(MPI_Comm comm, int maxdims, int dims[], int periods[], int coords[]);
int MPI_Cart_rank(MPI_Comm comm, const int coords[], int *rank);
int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int coords[]);
int MPI_Graph_neighbors_count(MPI_Comm comm, int rank, int *nneighbors);
int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors, int neighbors[]);
int MPI_Cart_shift(MPI_Comm comm, int direction, int disp, int *rank_source, int *rank_dest);
int MPI_Cart_sub(MPI_Comm comm, const int remain_dims[], MPI_Comm *newcomm);
int MPI_Cart_map(MPI_Comm comm, int ndims, const int dims[], const int periods[], int *newrank);
int MPI_Graph_map(MPI_Comm comm, int nnodes, const int indx[], const int edges[], int *newrank);
int MPI_Get_processor_name(char *name, int *resultlen);
int MPI_Get_version(int *version, int *subversion);
int MPI_Get_library_version(char *version, int *resultlen);
int MPI_Errhandler_create(MPI_Handler_function *function, MPI_Errhandler *errhandler);
int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler);
int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler);
int MPI_Errhandler_free(MPI_Errhandler *errhandler);
int MPI_Error_string(int errorcode, char *string, int *resultlen);
int MPI_Error_class(int errorcode, int *errorclass);
double MPI_Wtime(void);
double MPI_Wtick(void);
int MPI_Init(int *argc, char ***argv);
int MPI_Finalize(void);
int MPI_Initialized(int *flag);
int MPI_Abort(MPI_Comm comm, int errorcode);
int MPI_Pcontrol(const int level, ...);
int MPIR_Dup_fn(MPI_Comm oldcomm, int keyval, void *extra_state, void *attribute_val_in,
void *attribute_val_out, int *flag);
int MPI_Close_port(const char *port_name);
int MPI_Comm_accept(const char *port_name, MPI_Info info, int root, MPI_Comm comm,
MPI_Comm *newcomm);
int MPI_Comm_connect(const char *port_name, MPI_Info info, int root, MPI_Comm comm,
MPI_Comm *newcomm);
int MPI_Comm_disconnect(MPI_Comm *comm);
int MPI_Comm_get_parent(MPI_Comm *parent);
int MPI_Comm_join(int fd, MPI_Comm *intercomm);
int MPI_Comm_spawn(const char *command, char *argv[], int maxprocs, MPI_Info info, int root,
MPI_Comm comm, MPI_Comm *intercomm, int array_of_errcodes[]);
int MPI_Comm_spawn_multiple(int count, char *array_of_commands[], char **array_of_argv[],
const int array_of_maxprocs[], const MPI_Info array_of_info[],
int root, MPI_Comm comm, MPI_Comm *intercomm, int array_of_errcodes[]);
int MPI_Lookup_name(const char *service_name, MPI_Info info, char *port_name);
int MPI_Open_port(MPI_Info info, char *port_name);
int MPI_Publish_name(const char *service_name, MPI_Info info, const char *port_name);
int MPI_Unpublish_name(const char *service_name, MPI_Info info, const char *port_name);
int MPI_Comm_set_info(MPI_Comm comm, MPI_Info info);
int MPI_Comm_get_info(MPI_Comm comm, MPI_Info *info);
int MPI_Accumulate(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
int target_rank, MPI_Aint target_disp, int target_count,
MPI_Datatype target_datatype, MPI_Op op, MPI_Win win)
;
int MPI_Get(void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
int target_rank, MPI_Aint target_disp, int target_count,
MPI_Datatype target_datatype, MPI_Win win) ;
int MPI_Put(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
int target_rank, MPI_Aint target_disp, int target_count,
MPI_Datatype target_datatype, MPI_Win win) ;
int MPI_Win_complete(MPI_Win win);
int MPI_Win_create(void *base, MPI_Aint size, int disp_unit, MPI_Info info, MPI_Comm comm,
MPI_Win *win);
int MPI_Win_fence(int assert, MPI_Win win);
int MPI_Win_free(MPI_Win *win);
int MPI_Win_get_group(MPI_Win win, MPI_Group *group);
int MPI_Win_lock(int lock_type, int rank, int assert, MPI_Win win);
int MPI_Win_post(MPI_Group group, int assert, MPI_Win win);
int MPI_Win_start(MPI_Group group, int assert, MPI_Win win);
int MPI_Win_test(MPI_Win win, int *flag);
int MPI_Win_unlock(int rank, MPI_Win win);