forked from caps-tum/qmpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqmpi.h
1537 lines (1157 loc) · 83.9 KB
/
qmpi.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
/**
Copyright (C) 2018 Technische Universitaet Muenchen
Chair of Computer Architecture and
Parallel Systems
Author: Bengisu Elis
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#include <stdarg.h>
#ifndef QMPI_H
#define QMPI_H
#define NUM_MPI_FUNCS 360
#define VECTOR_INIT_CAPACITY 4
#define QMPI_LEVEL 0
#define QMPI_TABLE_QUERY(func_index, func_ptr, table) QMPI_Table_query(func_index, func_ptr, table)
#define QMPI_SET_CONTEXT(v,i,c,sz) QMPI_Set_context( v, i,c,sz)
#define MPI_TABLE_QUERY(func_index, func_ptr, table) MPI_Table_query(func_index, func_ptr, table)
#define EXEC_FUNC(func_ptr,level ,func_index,v ,...) exec_func(func_ptr,level ,func_index,v ,##__VA_ARGS__)
#define QMPI_GET_CONTEXT(v,index) (( (index) >= (0) && (index) < ((*v).total) ) ? (((*v).items[index])->context) : (NULL) )
#define VECTOR_GET(v,index) (( (index) >= (0) && (index) < ((*v).total) ) ? ((*v).items[index]) : (NULL) )
#define QMPI_GET_LEVEL(index, func_index, v) (( (index) >= (0) && (index) < ((*v).total) ) ? ((( (*v).items[index])->table[func_index]).level) : (0) )
typedef enum {
_MPI_Abort = 0 ,
_MPI_Accumulate = 1 ,
_MPI_Add_error_class = 2 ,
_MPI_Add_error_code = 3 ,
_MPI_Add_error_string = 4 ,
_MPI_Address = 5 ,
_MPI_Allgather = 6 ,
_MPI_Allgatherv = 7 ,
_MPI_Alloc_mem = 8 ,
_MPI_Allreduce = 9 ,
_MPI_Alltoall = 10 ,
_MPI_Alltoallv = 11 ,
_MPI_Alltoallw = 12 ,
_MPI_Attr_delete = 13 ,
_MPI_Attr_get = 14 ,
_MPI_Attr_put = 15 ,
_MPI_Barrier = 16 ,
_MPI_Bcast = 17 ,
_MPI_Bsend = 18 ,
_MPI_Bsend_init = 19 ,
_MPI_Buffer_attach = 20 ,
_MPI_Buffer_detach = 21 ,
_MPI_Cancel = 22 ,
_MPI_Cart_coords = 23 ,
_MPI_Cart_create = 24 ,
_MPI_Cart_get = 25 ,
_MPI_Cart_map = 26 ,
_MPI_Cart_rank = 27 ,
_MPI_Cart_shift = 28 ,
_MPI_Cart_sub = 29 ,
_MPI_Cartdim_get = 30 ,
_MPI_Close_port = 31 ,
_MPI_Comm_accept = 32 ,
_MPI_Comm_call_errhandler = 33 ,
_MPI_Comm_compare = 34 ,
_MPI_Comm_connect = 35 ,
_MPI_Comm_create = 36 ,
_MPI_Comm_create_errhandler = 37 ,
_MPI_Comm_create_group = 38 ,
_MPI_Comm_create_keyval = 39 ,
_MPI_Comm_delete_attr = 40 ,
_MPI_Comm_disconnect = 41 ,
_MPI_Comm_dup = 42 ,
_MPI_Comm_dup_with_info = 43 ,
_MPI_Comm_free = 44 ,
_MPI_Comm_free_keyval = 45 ,
_MPI_Comm_get_attr = 46 ,
_MPI_Comm_get_errhandler = 47 ,
_MPI_Comm_get_info = 48 ,
_MPI_Comm_get_name = 49 ,
_MPI_Comm_get_parent = 50 ,
_MPI_Comm_group = 51 ,
_MPI_Comm_idup = 52 ,
_MPI_Comm_join = 53 ,
_MPI_Comm_rank = 54 ,
_MPI_Comm_remote_group = 55 ,
_MPI_Comm_remote_size = 56 ,
_MPI_Comm_set_attr = 57 ,
_MPI_Comm_set_errhandler = 58 ,
_MPI_Comm_set_info = 59 ,
_MPI_Comm_set_name = 60 ,
_MPI_Comm_size = 61 ,
_MPI_Comm_split = 62 ,
_MPI_Comm_split_type = 63 ,
_MPI_Comm_test_inter = 64 ,
_MPI_Compare_and_swap = 65 ,
_MPI_Dims_create = 66 ,
_MPI_Dist_graph_create = 67 ,
_MPI_Dist_graph_create_adjacent = 68 ,
_MPI_Dist_graph_neighbors = 69 ,
_MPI_Dist_graph_neighbors_count = 70 ,
_MPI_Errhandler_create = 71 ,
_MPI_Errhandler_free = 72 ,
_MPI_Errhandler_get = 73 ,
_MPI_Errhandler_set = 74 ,
_MPI_Error_class = 75 ,
_MPI_Error_string = 76 ,
_MPI_Exscan = 77 ,
_MPI_Fetch_and_op = 78 ,
_MPI_File_call_errhandler = 79 ,
_MPI_File_close = 80 ,
_MPI_File_create_errhandler = 81 ,
_MPI_File_delete = 82 ,
_MPI_File_get_amode = 83 ,
_MPI_File_get_atomicity = 84 ,
_MPI_File_get_byte_offset = 85 ,
_MPI_File_get_errhandler = 86 ,
_MPI_File_get_group = 87 ,
_MPI_File_get_info = 88 ,
_MPI_File_get_position = 89 ,
_MPI_File_get_position_shared = 90 ,
_MPI_File_get_size = 91 ,
_MPI_File_get_type_extent = 92 ,
_MPI_File_get_view = 93 ,
_MPI_File_iread = 94 ,
_MPI_File_iread_all = 95 ,
_MPI_File_iread_at = 96 ,
_MPI_File_iread_at_all = 97 ,
_MPI_File_iread_shared = 98 ,
_MPI_File_iwrite = 99 ,
_MPI_File_iwrite_all = 100 ,
_MPI_File_iwrite_at = 101 ,
_MPI_File_iwrite_at_all = 102 ,
_MPI_File_iwrite_shared = 103 ,
_MPI_File_open = 104 ,
_MPI_File_preallocate = 105 ,
_MPI_File_read = 106 ,
_MPI_File_read_all = 107 ,
_MPI_File_read_all_begin = 108 ,
_MPI_File_read_all_end = 109 ,
_MPI_File_read_at = 110 ,
_MPI_File_read_at_all = 111 ,
_MPI_File_read_at_all_begin = 112 ,
_MPI_File_read_at_all_end = 113 ,
_MPI_File_read_ordered = 114 ,
_MPI_File_read_ordered_begin = 115 ,
_MPI_File_read_ordered_end = 116 ,
_MPI_File_read_shared = 117 ,
_MPI_File_seek = 118 ,
_MPI_File_seek_shared = 119 ,
_MPI_File_set_atomicity = 120 ,
_MPI_File_set_errhandler = 121 ,
_MPI_File_set_info = 122 ,
_MPI_File_set_size = 123 ,
_MPI_File_set_view = 124 ,
_MPI_File_sync = 125 ,
_MPI_File_write = 126 ,
_MPI_File_write_all = 127 ,
_MPI_File_write_all_begin = 128 ,
_MPI_File_write_all_end = 129 ,
_MPI_File_write_at = 130 ,
_MPI_File_write_at_all = 131 ,
_MPI_File_write_at_all_begin = 132 ,
_MPI_File_write_at_all_end = 133 ,
_MPI_File_write_ordered = 134 ,
_MPI_File_write_ordered_begin = 135 ,
_MPI_File_write_ordered_end = 136 ,
_MPI_File_write_shared = 137 ,
_MPI_Finalize = 138 ,
_MPI_Finalized = 139 ,
_MPI_Free_mem = 140 ,
_MPI_Gather = 141 ,
_MPI_Gatherv = 142 ,
_MPI_Get = 143 ,
_MPI_Get_accumulate = 144 ,
_MPI_Get_address = 145 ,
_MPI_Get_count = 146 ,
_MPI_Get_elements = 147 ,
_MPI_Get_elements_x = 148 ,
_MPI_Get_library_version = 149 ,
_MPI_Get_processor_name = 150 ,
_MPI_Get_version = 151 ,
_MPI_Graph_create = 152 ,
_MPI_Graph_get = 153 ,
_MPI_Graph_map = 154 ,
_MPI_Graph_neighbors = 155 ,
_MPI_Graph_neighbors_count = 156 ,
_MPI_Graphdims_get = 157 ,
_MPI_Grequest_complete = 158 ,
_MPI_Grequest_start = 159 ,
_MPI_Group_compare = 160 ,
_MPI_Group_difference = 161 ,
_MPI_Group_excl = 162 ,
_MPI_Group_free = 163 ,
_MPI_Group_incl = 164 ,
_MPI_Group_intersection = 165 ,
_MPI_Group_range_excl = 166 ,
_MPI_Group_range_incl = 167 ,
_MPI_Group_rank = 168 ,
_MPI_Group_size = 169 ,
_MPI_Group_translate_ranks = 170 ,
_MPI_Group_union = 171 ,
_MPI_Iallgather = 172 ,
_MPI_Iallgatherv = 173 ,
_MPI_Iallreduce = 174 ,
_MPI_Ialltoall = 175 ,
_MPI_Ialltoallv = 176 ,
_MPI_Ialltoallw = 177 ,
_MPI_Ibarrier = 178 ,
_MPI_Ibcast = 179 ,
_MPI_Ibsend = 180 ,
_MPI_Iexscan = 181 ,
_MPI_Igather = 182 ,
_MPI_Igatherv = 183 ,
_MPI_Improbe = 184 ,
_MPI_Imrecv = 185 ,
_MPI_Ineighbor_allgather = 186 ,
_MPI_Ineighbor_allgatherv = 187 ,
_MPI_Ineighbor_alltoall = 188 ,
_MPI_Ineighbor_alltoallv = 189 ,
_MPI_Ineighbor_alltoallw = 190 ,
_MPI_Info_create = 191 ,
_MPI_Info_delete = 192 ,
_MPI_Info_dup = 193 ,
_MPI_Info_free = 194 ,
_MPI_Info_get = 195 ,
_MPI_Info_get_nkeys = 196 ,
_MPI_Info_get_nthkey = 197 ,
_MPI_Info_get_valuelen = 198 ,
_MPI_Info_set = 199 ,
_MPI_Init = 200 ,
_MPI_Init_thread = 201 ,
_MPI_Initialized = 202 ,
_MPI_Intercomm_create = 203 ,
_MPI_Intercomm_merge = 204 ,
_MPI_Iprobe = 205 ,
_MPI_Irecv = 206 ,
_MPI_Ireduce = 207 ,
_MPI_Ireduce_scatter = 208 ,
_MPI_Ireduce_scatter_block = 209 ,
_MPI_Irsend = 210 ,
_MPI_Is_thread_main = 211 ,
_MPI_Iscan = 212 ,
_MPI_Iscatter = 213 ,
_MPI_Iscatterv = 214 ,
_MPI_Isend = 215 ,
_MPI_Issend = 216 ,
_MPI_Keyval_create = 217 ,
_MPI_Keyval_free = 218 ,
_MPI_Lookup_name = 219 ,
_MPI_Mprobe = 220 ,
_MPI_Mrecv = 221 ,
_MPI_Neighbor_allgather = 222 ,
_MPI_Neighbor_allgatherv = 223 ,
_MPI_Neighbor_alltoall = 224 ,
_MPI_Neighbor_alltoallv = 225 ,
_MPI_Neighbor_alltoallw = 226 ,
_MPI_Op_commutative = 227 ,
_MPI_Op_create = 228 ,
_MPI_Op_free = 229 ,
_MPI_Open_port = 230 ,
_MPI_Pack = 231 ,
_MPI_Pack_external = 232 ,
_MPI_Pack_external_size = 233 ,
_MPI_Pack_size = 234 ,
_MPI_Pcontrol = 235 ,
_MPI_Probe = 236 ,
_MPI_Publish_name = 237 ,
_MPI_Put = 238 ,
_MPI_Query_thread = 239 ,
_MPI_Raccumulate = 240 ,
_MPI_Recv = 241 ,
_MPI_Recv_init = 242 ,
_MPI_Reduce = 243 ,
_MPI_Reduce_local = 244 ,
_MPI_Reduce_scatter = 245 ,
_MPI_Reduce_scatter_block = 246 ,
_MPI_Register_datarep = 247 ,
_MPI_Request_free = 248 ,
_MPI_Request_get_status = 249 ,
_MPI_Rget = 250 ,
_MPI_Rget_accumulate = 251 ,
_MPI_Rput = 252 ,
_MPI_Rsend = 253 ,
_MPI_Rsend_init = 254 ,
_MPI_Scan = 255 ,
_MPI_Scatter = 256 ,
_MPI_Scatterv = 257 ,
_MPI_Send = 258 ,
_MPI_Send_init = 259 ,
_MPI_Sendrecv = 260 ,
_MPI_Sendrecv_replace = 261 ,
_MPI_Ssend = 262 ,
_MPI_Ssend_init = 263 ,
_MPI_Start = 264 ,
_MPI_Startall = 265 ,
_MPI_Status_set_cancelled = 266 ,
_MPI_Status_set_elements = 267 ,
_MPI_Status_set_elements_x = 268 ,
_MPI_Test = 269 ,
_MPI_Test_cancelled = 270 ,
_MPI_Testall = 271 ,
_MPI_Testany = 272 ,
_MPI_Testsome = 273 ,
_MPI_Topo_test = 274 ,
_MPI_Type_commit = 275 ,
_MPI_Type_contiguous = 276 ,
_MPI_Type_create_darray = 277 ,
_MPI_Type_create_f90_complex = 278 ,
_MPI_Type_create_f90_integer = 279 ,
_MPI_Type_create_f90_real = 280 ,
_MPI_Type_create_hindexed = 281 ,
_MPI_Type_create_hindexed_block = 282 ,
_MPI_Type_create_hvector = 283 ,
_MPI_Type_create_indexed_block = 284 ,
_MPI_Type_create_keyval = 285 ,
_MPI_Type_create_resized = 286 ,
_MPI_Type_create_struct = 287 ,
_MPI_Type_create_subarray = 288 ,
_MPI_Type_delete_attr = 289 ,
_MPI_Type_dup = 290 ,
_MPI_Type_extent = 291 ,
_MPI_Type_free = 292 ,
_MPI_Type_free_keyval = 293 ,
_MPI_Type_get_attr = 294 ,
_MPI_Type_get_contents = 295 ,
_MPI_Type_get_envelope = 296 ,
_MPI_Type_get_extent = 297 ,
_MPI_Type_get_extent_x = 298 ,
_MPI_Type_get_name = 299 ,
_MPI_Type_get_true_extent = 300 ,
_MPI_Type_get_true_extent_x = 301 ,
_MPI_Type_hindexed = 302 ,
_MPI_Type_hvector = 303 ,
_MPI_Type_indexed = 304 ,
_MPI_Type_lb = 305 ,
_MPI_Type_match_size = 306 ,
_MPI_Type_set_attr = 307 ,
_MPI_Type_set_name = 308 ,
_MPI_Type_size = 309 ,
_MPI_Type_size_x = 310 ,
_MPI_Type_struct = 311 ,
_MPI_Type_ub = 312 ,
_MPI_Type_vector = 313 ,
_MPI_Unpack = 314 ,
_MPI_Unpack_external = 315 ,
_MPI_Unpublish_name = 316 ,
_MPI_Wait = 317 ,
_MPI_Waitall = 318 ,
_MPI_Waitany = 319 ,
_MPI_Waitsome = 320 ,
_MPI_Win_allocate = 321 ,
_MPI_Win_allocate_shared = 322 ,
_MPI_Win_attach = 323 ,
_MPI_Win_call_errhandler = 324 ,
_MPI_Win_complete = 325 ,
_MPI_Win_create = 326 ,
_MPI_Win_create_dynamic = 327 ,
_MPI_Win_create_errhandler = 328 ,
_MPI_Win_create_keyval = 329 ,
_MPI_Win_delete_attr = 330 ,
_MPI_Win_detach = 331 ,
_MPI_Win_fence = 332 ,
_MPI_Win_flush = 333 ,
_MPI_Win_flush_all = 334 ,
_MPI_Win_flush_local = 335 ,
_MPI_Win_flush_local_all = 336 ,
_MPI_Win_free = 337 ,
_MPI_Win_free_keyval = 338 ,
_MPI_Win_get_attr = 339 ,
_MPI_Win_get_errhandler = 340 ,
_MPI_Win_get_group = 341 ,
_MPI_Win_get_info = 342 ,
_MPI_Win_get_name = 343 ,
_MPI_Win_lock = 344 ,
_MPI_Win_lock_all = 345 ,
_MPI_Win_post = 346 ,
_MPI_Win_set_attr = 347 ,
_MPI_Win_set_errhandler = 348 ,
_MPI_Win_set_info = 349 ,
_MPI_Win_set_name = 350 ,
_MPI_Win_shared_query = 351 ,
_MPI_Win_start = 352 ,
_MPI_Win_sync = 353 ,
_MPI_Win_test = 354 ,
_MPI_Win_unlock = 355 ,
_MPI_Win_unlock_all = 356 ,
_MPI_Win_wait = 357 ,
_MPI_Wtick = 358 ,
_MPI_Wtime = 359
}_MPI_funcs;
typedef struct vector {
struct dynamic_lib **items;
int capacity;
int total;
} vector;
typedef struct cell {
void* func_ptr;
int level;
// void* next;
}cell;
typedef char* (*mpi_func)(int i);
void vector_init(vector *);
int vector_total(vector *);
static void vector_resize(vector *, int);
void vector_add(vector *, struct dynamic_lib *);
void vector_set(vector *, int, struct dynamic_lib *);
struct dynamic_lib *vector_get(vector *, int);
void vector_delete(vector *, int);
void vector_free(vector * );
typedef void* dynamic_lib_handle;
struct dynamic_lib {
//TODO: fix this path variable (fixed size array )
char path[100];
// char* path;
dynamic_lib_handle handle;
char* mpi_interceptions[NUM_MPI_FUNCS ];
cell table[NUM_MPI_FUNCS];
void* context;
};
void* QMPI_Get_context (vector* v, int i);
void QMPI_Set_context (vector *v, int index, void* cntxt, size_t sz);
int End_Tool (int *argc,char ***argv,int i,vector* v);
dynamic_lib_handle load_lib (const char* path);
void* get_func_ptr ( const dynamic_lib_handle handle, char* func_name );
int exec_func (void* func_ptr, int level ,_MPI_funcs func_index,vector* v, ...);
void get_tool_interceptions ( struct dynamic_lib* l );
int QMPI_Table_query (_MPI_funcs func_index, void** func_ptr, cell table[]);
int MPI_Table_query (_MPI_funcs func_index, void** func_ptr, cell table[]);
int split (char* paths, int next);
/* ================== C Wrappers for MPI_Send ================== */
int QMPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, int level ,vector* v);
/* ================== C Wrappers for MPI_Recv ================== */
int QMPI_Recv(void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status, int level ,vector* v);
/* ================== C Wrappers for MPI_Abort ================== */
int QMPI_Abort(MPI_Comm comm, int errorcode, int level ,vector* v);
/* ================== C Wrappers for MPI_Accumulate ================== */
int QMPI_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 level ,vector* v);
/* ================== C Wrappers for MPI_Add_error_class ================== */
int QMPI_Add_error_class(int *errorclass, int level ,vector* v);
/* ================== C Wrappers for MPI_Add_error_code ================== */
int QMPI_Add_error_code(int errorclass, int *errorcode, int level ,vector* v);
/* ================== C Wrappers for MPI_Add_error_string ================== */
int QMPI_Add_error_string(int errorcode, const char *string, int level ,vector* v);
/* ================== C Wrappers for MPI_Address ================== */
int QMPI_Address(void *location, MPI_Aint *address, int level ,vector* v);
/* ================== C Wrappers for MPI_Allgather ================== */
int QMPI_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm, int level ,vector* v);
/* ================== C Wrappers for MPI_Allgatherv ================== */
int QMPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPI_Comm comm, int level ,vector* v);
/* ================== C Wrappers for MPI_Alloc_mem ================== */
int QMPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr, int level ,vector* v);
/* ================== C Wrappers for MPI_Allreduce ================== */
int QMPI_Allreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, int level ,vector* v);
/* ================== C Wrappers for MPI_Alltoall ================== */
int QMPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm, int level ,vector* v);
/* ================== C Wrappers for MPI_Alltoallv ================== */
int QMPI_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 level ,vector* v);
/* ================== C Wrappers for MPI_Alltoallw ================== */
int QMPI_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 level ,vector* v);
/* ================== C Wrappers for MPI_Attr_delete ================== */
int QMPI_Attr_delete(MPI_Comm comm, int keyval, int level ,vector* v);
/* ================== C Wrappers for MPI_Attr_get ================== */
int QMPI_Attr_get(MPI_Comm comm, int keyval, void *attribute_val, int *flag, int level ,vector* v);
/* ================== C Wrappers for MPI_Attr_put ================== */
int QMPI_Attr_put(MPI_Comm comm, int keyval, void *attribute_val, int level ,vector* v);
/* ================== C Wrappers for MPI_Barrier ================== */
int QMPI_Barrier(MPI_Comm comm, int level ,vector* v);
/* ================== C Wrappers for MPI_Bcast ================== */
int QMPI_Bcast(void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm, int level ,vector* v);
/* ================== C Wrappers for MPI_Bsend ================== */
int QMPI_Bsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, int level, vector* v);
/* ================== C Wrappers for MPI_Bsend_init ================== */
int QMPI_Bsend_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Buffer_attach ================== */
int QMPI_Buffer_attach(void *buffer, int size, int level, vector* v);
/* ================== C Wrappers for MPI_Buffer_detach ================== */
int QMPI_Buffer_detach(void *buffer, int *size, int level, vector* v);
/* ================== C Wrappers for MPI_Cancel ================== */
int QMPI_Cancel(MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Cart_coords ================== */
int QMPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int coords[], int level, vector* v);
/* ================== C Wrappers for MPI_Cart_create ================== */
int QMPI_Cart_create(MPI_Comm old_comm, int ndims, const int dims[], const int periods[], int reorder, MPI_Comm *comm_cart, int level, vector* v);
/* ================== C Wrappers for MPI_Cart_get ================== */
int QMPI_Cart_get(MPI_Comm comm, int maxdims, int dims[], int periods[], int coords[], int level, vector* v);
/* ================== C Wrappers for MPI_Cart_map ================== */
int QMPI_Cart_map(MPI_Comm comm, int ndims, const int dims[], const int periods[], int *newrank, int level, vector* v);
/* ================== C Wrappers for MPI_Cart_rank ================== */
int QMPI_Cart_rank(MPI_Comm comm, const int coords[], int *rank, int level, vector* v);
/* ================== C Wrappers for MPI_Cart_shift ================== */
int QMPI_Cart_shift(MPI_Comm comm, int direction, int disp, int *rank_source, int *rank_dest, int level, vector* v);
/* ================== C Wrappers for MPI_Cart_sub ================== */
int QMPI_Cart_sub(MPI_Comm comm, const int remain_dims[], MPI_Comm *new_comm, int level, vector* v);
/* ================== C Wrappers for MPI_Cartdim_get ================== */
int QMPI_Cartdim_get(MPI_Comm comm, int *ndims, int level, vector* v);
/* ================== C Wrappers for MPI_Close_port ================== */
int QMPI_Close_port(const char *port_name, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_accept ================== */
int QMPI_Comm_accept(const char *port_name, MPI_Info info, int root, MPI_Comm comm, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_call_errhandler ================== */
int QMPI_Comm_call_errhandler(MPI_Comm comm, int errorcode, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_compare ================== */
int QMPI_Comm_compare(MPI_Comm comm1, MPI_Comm comm2, int *result, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_connect ================== */
int QMPI_Comm_connect(const char *port_name, MPI_Info info, int root, MPI_Comm comm, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_create ================== */
int QMPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_create_errhandler ================== */
int QMPI_Comm_create_errhandler(MPI_Comm_errhandler_function *function, MPI_Errhandler *errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_create_group ================== */
int QMPI_Comm_create_group(MPI_Comm comm, MPI_Group group, int tag, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_create_keyval ================== */
int QMPI_Comm_create_keyval(MPI_Comm_copy_attr_function *comm_copy_attr_fn, MPI_Comm_delete_attr_function *comm_delete_attr_fn, int *comm_keyval, void *extra_state, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_delete_attr ================== */
int QMPI_Comm_delete_attr(MPI_Comm comm, int comm_keyval, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_disconnect ================== */
int QMPI_Comm_disconnect(MPI_Comm *comm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_dup ================== */
int QMPI_Comm_dup(MPI_Comm comm, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_dup_with_info ================== */
int QMPI_Comm_dup_with_info(MPI_Comm comm, MPI_Info info, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_free ================== */
int QMPI_Comm_free(MPI_Comm *comm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_free_keyval ================== */
int QMPI_Comm_free_keyval(int *comm_keyval, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_get_attr ================== */
int QMPI_Comm_get_attr(MPI_Comm comm, int comm_keyval, void *attribute_val, int *flag, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_get_errhandler ================== */
int QMPI_Comm_get_errhandler(MPI_Comm comm, MPI_Errhandler *erhandler, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_get_info ================== */
int QMPI_Comm_get_info(MPI_Comm comm, MPI_Info *info_used, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_get_name ================== */
int QMPI_Comm_get_name(MPI_Comm comm, char *comm_name, int *resultlen, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_get_parent ================== */
int QMPI_Comm_get_parent(MPI_Comm *parent, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_group ================== */
int QMPI_Comm_group(MPI_Comm comm, MPI_Group *group, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_idup ================== */
int QMPI_Comm_idup(MPI_Comm comm, MPI_Comm *newcomm, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_join ================== */
int QMPI_Comm_join(int fd, MPI_Comm *intercomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_rank ================== */
int QMPI_Comm_rank(MPI_Comm comm,int *rank, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_remote_group ================== */
int QMPI_Comm_remote_group(MPI_Comm comm, MPI_Group *group, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_remote_size ================== */
int QMPI_Comm_remote_size(MPI_Comm comm, int *size, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_set_attr ================== */
int QMPI_Comm_set_attr(MPI_Comm comm, int comm_keyval, void *attribute_val, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_set_errhandler ================== */
int QMPI_Comm_set_errhandler(MPI_Comm comm, MPI_Errhandler errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_set_info ================== */
int QMPI_Comm_set_info(MPI_Comm comm, MPI_Info info, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_set_name ================== */
int QMPI_Comm_set_name(MPI_Comm comm, const char *comm_name, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_size ================== */
int QMPI_Comm_size(MPI_Comm comm, int *size, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_split ================== */
int QMPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_split_type ================== */
int QMPI_Comm_split_type(MPI_Comm comm, int split_type, int key, MPI_Info info, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Comm_test_inter ================== */
int QMPI_Comm_test_inter(MPI_Comm comm, int *flag, int level, vector* v);
/* ================== C Wrappers for MPI_Compare_and_swap ================== */
int QMPI_Compare_and_swap(const void *origin_addr, const void *compare_addr, void *result_addr, MPI_Datatype datatype, int target_rank, MPI_Aint target_disp, MPI_Win win, int level, vector* v);
/* ================== C Wrappers for MPI_Dims_create ================== */
int QMPI_Dims_create(int nnodes, int ndims, int dims[], int level, vector* v);
/* ================== C Wrappers for MPI_Dist_graph_create ================== */
int QMPI_Dist_graph_create(MPI_Comm comm_old, int n, const int nodes[], const int degrees[], const int targets[], const int weights[], MPI_Info info, int reorder, MPI_Comm *newcomm, int level, vector* v);
/* ================== C Wrappers for MPI_Dist_graph_create_adjacent ================== */
int QMPI_Dist_graph_create_adjacent(MPI_Comm comm_old, int indegree, const int sources[], const int sourceweights[], int outdegree, const int destinations[], const int destweights[], MPI_Info info, int reorder, MPI_Comm *comm_dist_graph, int level, vector* v);
/* ================== C Wrappers for MPI_Dist_graph_neighbors ================== */
int QMPI_Dist_graph_neighbors(MPI_Comm comm, int maxindegree, int sources[], int sourceweights[], int maxoutdegree, int destinations[], int destweights[], int level, vector* v);
/* ================== C Wrappers for MPI_Dist_graph_neighbors_count ================== */
int QMPI_Dist_graph_neighbors_count(MPI_Comm comm, int *inneighbors, int *outneighbors, int *weighted, int level, vector* v);
/* ================== C Wrappers for MPI_Errhandler_create ================== */
int QMPI_Errhandler_create(MPI_Handler_function *function, MPI_Errhandler *errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_Errhandler_free ================== */
int QMPI_Errhandler_free(MPI_Errhandler *errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_Errhandler_get ================== */
int QMPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_Errhandler_set ================== */
int QMPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_Error_class ================== */
int QMPI_Error_class(int errorcode, int *errorclass, int level, vector* v);
/* ================== C Wrappers for MPI_Error_string ================== */
int QMPI_Error_string(int errorcode, char *string, int *resultlen, int level, vector* v);
/* ================== C Wrappers for MPI_Exscan ================== */
int QMPI_Exscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, int level, vector* v);
/* ================== C Wrappers for MPI_Fetch_and_op ================== */
int QMPI_Fetch_and_op(const void *origin_addr, void *result_addr, MPI_Datatype datatype, int target_rank, MPI_Aint target_disp, MPI_Op op, MPI_Win win, int level, vector* v);
/* ================== C Wrappers for MPI_File_call_errhandler ================== */
int QMPI_File_call_errhandler(MPI_File fh, int errorcode, int level, vector* v);
/* ================== C Wrappers for MPI_File_close ================== */
int QMPI_File_close(MPI_File *fh, int level, vector* v);
/* ================== C Wrappers for MPI_File_create_errhandler ================== */
int QMPI_File_create_errhandler(MPI_File_errhandler_function *function, MPI_Errhandler *errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_File_delete ================== */
int QMPI_File_delete(const char *filename, MPI_Info info, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_amode ================== */
int QMPI_File_get_amode(MPI_File fh, int *amode, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_atomicity ================== */
int QMPI_File_get_atomicity(MPI_File fh, int *flag, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_byte_offset ================== */
int QMPI_File_get_byte_offset(MPI_File fh, MPI_Offset offset, MPI_Offset *disp, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_errhandler ================== */
int QMPI_File_get_errhandler(MPI_File file, MPI_Errhandler *errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_group ================== */
int QMPI_File_get_group(MPI_File fh, MPI_Group *group, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_info ================== */
int QMPI_File_get_info(MPI_File fh, MPI_Info *info_used, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_position ================== */
int QMPI_File_get_position(MPI_File fh, MPI_Offset *offset, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_position_shared ================== */
int QMPI_File_get_position_shared(MPI_File fh, MPI_Offset *offset, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_size ================== */
int QMPI_File_get_size(MPI_File fh, MPI_Offset *size, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_type_extent ================== */
int QMPI_File_get_type_extent(MPI_File fh, MPI_Datatype datatype, MPI_Aint *extent, int level, vector* v);
/* ================== C Wrappers for MPI_File_get_view ================== */
int QMPI_File_get_view(MPI_File fh, MPI_Offset *disp, MPI_Datatype *etype, MPI_Datatype *filetype, char *datarep, int level, vector* v);
/* ================== C Wrappers for MPI_File_iread ================== */
int QMPI_File_iread(MPI_File fh, void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iread_all ================== */
int QMPI_File_iread_all(MPI_File fh, void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iread_at ================== */
int QMPI_File_iread_at(MPI_File fh, MPI_Offset offset, void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iread_at_all ================== */
int QMPI_File_iread_at_all(MPI_File fh, MPI_Offset offset, void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iread_shared ================== */
int QMPI_File_iread_shared(MPI_File fh, void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iwrite ================== */
int QMPI_File_iwrite(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iwrite_all ================== */
int QMPI_File_iwrite_all(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iwrite_at ================== */
int QMPI_File_iwrite_at(MPI_File fh, MPI_Offset offset, const void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iwrite_at_all ================== */
int QMPI_File_iwrite_at_all(MPI_File fh, MPI_Offset offset, const void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_iwrite_shared ================== */
int QMPI_File_iwrite_shared(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_File_open ================== */
int QMPI_File_open(MPI_Comm comm, const char *filename, int amode, MPI_Info info, MPI_File *fh, int level, vector* v);
/* ================== C Wrappers for MPI_File_preallocate ================== */
int QMPI_File_preallocate(MPI_File fh, MPI_Offset size, int level, vector* v);
/* ================== C Wrappers for MPI_File_read ================== */
int QMPI_File_read(MPI_File fh, void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_all ================== */
int QMPI_File_read_all(MPI_File fh, void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_all_begin ================== */
int QMPI_File_read_all_begin(MPI_File fh, void *buf, int count, MPI_Datatype datatype, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_all_end ================== */
int QMPI_File_read_all_end(MPI_File fh, void *buf, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_at ================== */
int QMPI_File_read_at(MPI_File fh, MPI_Offset offset, void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_at_all ================== */
int QMPI_File_read_at_all(MPI_File fh, MPI_Offset offset, void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_at_all_begin ================== */
int QMPI_File_read_at_all_begin(MPI_File fh, MPI_Offset offset, void *buf, int count, MPI_Datatype datatype, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_at_all_end ================== */
int QMPI_File_read_at_all_end(MPI_File fh, void *buf, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_ordered ================== */
int QMPI_File_read_ordered(MPI_File fh, void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_ordered_begin ================== */
int QMPI_File_read_ordered_begin(MPI_File fh, void *buf, int count, MPI_Datatype datatype, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_ordered_end ================== */
int QMPI_File_read_ordered_end(MPI_File fh, void *buf, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_read_shared ================== */
int QMPI_File_read_shared(MPI_File fh, void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_seek ================== */
int QMPI_File_seek(MPI_File fh, MPI_Offset offset, int whence, int level, vector* v);
/* ================== C Wrappers for MPI_File_seek_shared ================== */
int QMPI_File_seek_shared(MPI_File fh, MPI_Offset offset, int whence, int level, vector* v);
/* ================== C Wrappers for MPI_File_set_atomicity ================== */
int QMPI_File_set_atomicity(MPI_File fh, int flag, int level, vector* v);
/* ================== C Wrappers for MPI_File_set_errhandler ================== */
int QMPI_File_set_errhandler(MPI_File file, MPI_Errhandler errhandler, int level, vector* v);
/* ================== C Wrappers for MPI_File_set_info ================== */
int QMPI_File_set_info(MPI_File fh, MPI_Info info, int level, vector* v);
/* ================== C Wrappers for MPI_File_set_size ================== */
int QMPI_File_set_size(MPI_File fh, MPI_Offset size, int level, vector* v);
/* ================== C Wrappers for MPI_File_set_view ================== */
int QMPI_File_set_view(MPI_File fh, MPI_Offset disp, MPI_Datatype etype, MPI_Datatype filetype, const char *datarep, MPI_Info info, int level, vector* v);
/* ================== C Wrappers for MPI_File_sync ================== */
int QMPI_File_sync(MPI_File fh, int level, vector* v);
/* ================== C Wrappers for MPI_File_write ================== */
int QMPI_File_write(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_all ================== */
int QMPI_File_write_all(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_all_begin ================== */
int QMPI_File_write_all_begin(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_all_end ================== */
int QMPI_File_write_all_end(MPI_File fh, const void *buf, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_at ================== */
int QMPI_File_write_at(MPI_File fh, MPI_Offset offset, const void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_at_all ================== */
int QMPI_File_write_at_all(MPI_File fh, MPI_Offset offset, const void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_at_all_begin ================== */
int QMPI_File_write_at_all_begin(MPI_File fh, MPI_Offset offset, const void *buf, int count, MPI_Datatype datatype, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_at_all_end ================== */
int QMPI_File_write_at_all_end(MPI_File fh, const void *buf, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_ordered ================== */
int QMPI_File_write_ordered(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_ordered_begin ================== */
int QMPI_File_write_ordered_begin(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_ordered_end ================== */
int QMPI_File_write_ordered_end(MPI_File fh, const void *buf, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_File_write_shared ================== */
int QMPI_File_write_shared(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, MPI_Status *status, int level, vector* v);
/* ================== C Wrappers for MPI_Finalize ================== */
int QMPI_Finalize( int level, vector* v);
/* ================== C Wrappers for MPI_Finalized ================== */
int QMPI_Finalized(int *flag, int level, vector* v);
/* ================== C Wrappers for MPI_Free_mem ================== */
int QMPI_Free_mem(void *base, int level, vector* v);
/* ================== C Wrappers for MPI_Gather ================== */
int QMPI_Gather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm, int level, vector* v);
/* ================== C Wrappers for MPI_Gatherv ================== */
int QMPI_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 level, vector* v);
/* ================== C Wrappers for MPI_Get ================== */
int QMPI_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 level, vector* v);
/* ================== C Wrappers for MPI_Get_accumulate ================== */
int QMPI_Get_accumulate(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype, void *result_addr, int result_count, MPI_Datatype result_datatype, int target_rank, MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype, MPI_Op op, MPI_Win win, int level, vector* v);
/* ================== C Wrappers for MPI_Get_address ================== */
int QMPI_Get_address(const void *location, MPI_Aint *address, int level, vector* v);
/* ================== C Wrappers for MPI_Get_count ================== */
int QMPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count, int level, vector* v);
/* ================== C Wrappers for MPI_Get_elements ================== */
int QMPI_Get_elements(const MPI_Status *status, MPI_Datatype datatype, int *count, int level, vector* v);
/* ================== C Wrappers for MPI_Get_elements_x ================== */
int QMPI_Get_elements_x(const MPI_Status *status, MPI_Datatype datatype, MPI_Count *count, int level, vector* v);
/* ================== C Wrappers for MPI_Get_library_version ================== */
int QMPI_Get_library_version(char *version, int *resultlen, int level, vector* v);
/* ================== C Wrappers for MPI_Get_processor_name ================== */
int QMPI_Get_processor_name(char *name, int *resultlen, int level, vector* v);
/* ================== C Wrappers for MPI_Get_version ================== */
int QMPI_Get_version(int *version, int *subversion, int level, vector* v);
/* ================== C Wrappers for MPI_Graph_create ================== */
int QMPI_Graph_create(MPI_Comm comm_old, int nnodes, const int index[], const int edges[], int reorder, MPI_Comm *comm_graph, int level, vector* v);
/* ================== C Wrappers for MPI_Graph_get ================== */
int QMPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges, int index[], int edges[], int level, vector* v);
/* ================== C Wrappers for MPI_Graph_map ================== */
int QMPI_Graph_map(MPI_Comm comm, int nnodes, const int index[], const int edges[], int *newrank, int level, vector* v);
/* ================== C Wrappers for MPI_Graph_neighbors ================== */
int QMPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors, int neighbors[], int level, vector* v);
/* ================== C Wrappers for MPI_Graph_neighbors_count ================== */
int QMPI_Graph_neighbors_count(MPI_Comm comm, int rank, int *nneighbors, int level, vector* v);
/* ================== C Wrappers for MPI_Graphdims_get ================== */
int QMPI_Graphdims_get(MPI_Comm comm, int *nnodes, int *nedges, int level, vector* v);
/* ================== C Wrappers for MPI_Grequest_complete ================== */
int QMPI_Grequest_complete(MPI_Request request, int level, vector* v);
/* ================== C Wrappers for MPI_Grequest_start ================== */
int QMPI_Grequest_start(MPI_Grequest_query_function *query_fn, MPI_Grequest_free_function *free_fn, MPI_Grequest_cancel_function *cancel_fn, void *extra_state, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Group_compare ================== */
int QMPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result, int level, vector* v);
/* ================== C Wrappers for MPI_Group_difference ================== */
int QMPI_Group_difference(MPI_Group group1, MPI_Group group2, MPI_Group *newgroup, int level, vector* v);
/* ================== C Wrappers for MPI_Group_excl ================== */
int QMPI_Group_excl(MPI_Group group, int n, const int ranks[], MPI_Group *newgroup, int level, vector* v);
/* ================== C Wrappers for MPI_Group_free ================== */
int QMPI_Group_free(MPI_Group *group, int level, vector* v);
/* ================== C Wrappers for MPI_Group_incl ================== */
int QMPI_Group_incl(MPI_Group group, int n, const int ranks[], MPI_Group *newgroup, int level, vector* v);
/* ================== C Wrappers for MPI_Group_intersection ================== */
int QMPI_Group_intersection(MPI_Group group1, MPI_Group group2, MPI_Group *newgroup, int level, vector* v);
/* ================== C Wrappers for MPI_Group_range_excl ================== */
int QMPI_Group_range_excl(MPI_Group group, int n, int ranges[][3], MPI_Group *newgroup, int level, vector* v);
/* ================== C Wrappers for MPI_Group_range_incl ================== */
int QMPI_Group_range_incl(MPI_Group group, int n, int ranges[][3], MPI_Group *newgroup, int level, vector* v);
/* ================== C Wrappers for MPI_Group_rank ================== */
int QMPI_Group_rank(MPI_Group group, int *rank, int level, vector* v);
/* ================== C Wrappers for MPI_Group_size ================== */
int QMPI_Group_size(MPI_Group group, int *size, int level, vector* v);
/* ================== C Wrappers for MPI_Group_translate_ranks ================== */
int QMPI_Group_translate_ranks(MPI_Group group1, int n, const int ranks1[], MPI_Group group2, int ranks2[], int level, vector* v);
/* ================== C Wrappers for MPI_Group_union ================== */
int QMPI_Group_union(MPI_Group group1, MPI_Group group2, MPI_Group *newgroup, int level, vector* v);
/* ================== C Wrappers for MPI_Iallgather ================== */
int QMPI_Iallgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Iallgatherv ================== */
int QMPI_Iallgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Iallreduce ================== */
int QMPI_Iallreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Ialltoall ================== */
int QMPI_Ialltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Ialltoallv ================== */
int QMPI_Ialltoallv(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, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Ialltoallw ================== */
int QMPI_Ialltoallw(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, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Ibarrier ================== */
int QMPI_Ibarrier(MPI_Comm comm, MPI_Request *request, int level, vector* v);
/* ================== C Wrappers for MPI_Ibcast ================== */