AdjoinableMPI
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
modified.h
Go to the documentation of this file.
1 /*
2 ##########################################################
3 # This file is part of the AdjoinableMPI library #
4 # released under the MIT License. #
5 # The full COPYRIGHT notice can be found in the top #
6 # level directory of the AdjoinableMPI distribution. #
7 ##########################################################
8 */
9 #ifndef _AMPI_LIBCOMMON_MODIFIED_H_
10 #define _AMPI_LIBCOMMON_MODIFIED_H_
11 
17 #include <mpi.h>
18 
19 #if defined(__cplusplus)
20 extern "C" {
21 #endif
22 
23 #include "ampi/userIF/pairedWith.h"
24 #include "ampi/userIF/request.h"
25 #include "ampi/userIF/window.h"
26 #include "ampi/adTool/support.h"
27 
31 int FW_AMPI_Recv(void* buf,
32  int count,
33  MPI_Datatype datatype,
34  int src,
35  int tag,
36  AMPI_PairedWith pairedWith,
37  MPI_Comm comm,
38  MPI_Status* status);
39 
43 int BW_AMPI_Recv(void* buf,
44  int count,
45  MPI_Datatype datatype,
46  int src,
47  int tag,
48  AMPI_PairedWith pairedWith,
49  MPI_Comm comm,
50  MPI_Status* status);
51 
55 int TLM_AMPI_Recv(void* buf,
56  int count,
57  MPI_Datatype datatype,
58  int src,
59  int tag,
60  AMPI_PairedWith pairedWith,
61  MPI_Comm comm,
62  MPI_Status* status);
63 
67 int TLS_AMPI_Recv(void* buf, void* shadowbuf,
68  int count,
69  MPI_Datatype datatype, MPI_Datatype shadowdatatype,
70  int src,
71  int tag,
72  AMPI_PairedWith pairedWith,
73  MPI_Comm comm,
74  MPI_Status* status) ;
75 
79 int FW_AMPI_Irecv (void* buf,
80  int count,
81  MPI_Datatype datatype,
82  int source,
83  int tag,
84  AMPI_PairedWith pairedWith,
85  MPI_Comm comm,
86  AMPI_Request* request);
87 
91 int BW_AMPI_Irecv (void* buf,
92  int count,
93  MPI_Datatype datatype,
94  int source,
95  int tag,
96  AMPI_PairedWith pairedWith,
97  MPI_Comm comm,
98  AMPI_Request* request);
99 
103 int TLM_AMPI_Irecv (void* buf,
104  int count,
105  MPI_Datatype datatype,
106  int source,
107  int tag,
108  AMPI_PairedWith pairedWith,
109  MPI_Comm comm,
110  AMPI_Request* request);
111 
115 int TLS_AMPI_Irecv (void* buf, void* shadowbuf,
116  int count,
117  MPI_Datatype datatype, MPI_Datatype shadowdatatype,
118  int source,
119  int tag,
120  AMPI_PairedWith pairedWith,
121  MPI_Comm comm,
122  AMPI_Request* request) ;
123 
127 int FW_AMPI_Send (void* buf,
128  int count,
129  MPI_Datatype datatype,
130  int dest,
131  int tag,
132  AMPI_PairedWith pairedWith,
133  MPI_Comm comm);
134 
138 int BW_AMPI_Send (void* buf,
139  int count,
140  MPI_Datatype datatype,
141  int dest,
142  int tag,
143  AMPI_PairedWith pairedWith,
144  MPI_Comm comm);
145 
149 int TLM_AMPI_Send (void* buf,
150  int count,
151  MPI_Datatype datatype,
152  int dest,
153  int tag,
154  AMPI_PairedWith pairedWith,
155  MPI_Comm comm);
156 
160 int TLS_AMPI_Send (void* buf, void* shadowbuf,
161  int count,
162  MPI_Datatype datatype, MPI_Datatype shadowdatatype,
163  int dest,
164  int tag,
165  AMPI_PairedWith pairedWith,
166  MPI_Comm comm);
167 
171 int FW_AMPI_Isend (void* buf,
172  int count,
173  MPI_Datatype datatype,
174  int dest,
175  int tag,
176  AMPI_PairedWith pairedWith,
177  MPI_Comm comm,
178  AMPI_Request* request);
179 
183 int BW_AMPI_Isend (void* buf,
184  int count,
185  MPI_Datatype datatype,
186  int dest,
187  int tag,
188  AMPI_PairedWith pairedWith,
189  MPI_Comm comm,
190  AMPI_Request* request);
191 
195 int TLM_AMPI_Isend (void* buf,
196  int count,
197  MPI_Datatype datatype,
198  int dest,
199  int tag,
200  AMPI_PairedWith pairedWith,
201  MPI_Comm comm,
202  AMPI_Request* request);
203 
207 int TLS_AMPI_Isend (void* buf, void* shadowbuf,
208  int count,
209  MPI_Datatype datatype, MPI_Datatype shadowdatatype,
210  int dest,
211  int tag,
212  AMPI_PairedWith pairedWith,
213  MPI_Comm comm,
214  AMPI_Request* request);
215 
219 int FW_AMPI_Wait(AMPI_Request *request,
220  MPI_Status *status);
221 
225 int BW_AMPI_Wait(AMPI_Request *request,
226  MPI_Status *status);
227 
231 int TLM_AMPI_Wait(AMPI_Request *request,
232  MPI_Status *status);
233 
237 int TLS_AMPI_Wait(AMPI_Request *request,
238  MPI_Status *status);
239 
243 int FW_AMPI_Barrier(MPI_Comm comm);
244 
248 int BW_AMPI_Barrier(MPI_Comm comm);
249 
253 int TLM_AMPI_Barrier(MPI_Comm comm);
254 
258 int TLS_AMPI_Barrier(MPI_Comm comm);
259 
263 int FW_AMPI_Gather(void *sendbuf,
264  int sendcnt,
265  MPI_Datatype sendtype,
266  void *recvbuf,
267  int recvcnt,
268  MPI_Datatype recvtype,
269  int root,
270  MPI_Comm comm);
271 
275 int BW_AMPI_Gather(void *sendbuf,
276  int sendcnt,
277  MPI_Datatype sendtype,
278  void *recvbuf,
279  int recvcnt,
280  MPI_Datatype recvtype,
281  int root,
282  MPI_Comm comm);
283 
287 int TLM_AMPI_Gather(void *sendbuf,
288  int sendcnt,
289  MPI_Datatype sendtype,
290  void *recvbuf,
291  int recvcnt,
292  MPI_Datatype recvtype,
293  int root,
294  MPI_Comm comm);
295 
299 int FW_AMPI_Scatter(void *sendbuf,
300  int sendcnt,
301  MPI_Datatype sendtype,
302  void *recvbuf,
303  int recvcnt,
304  MPI_Datatype recvtype,
305  int root,
306  MPI_Comm comm);
307 
311 int BW_AMPI_Scatter(void *sendbuf,
312  int sendcnt,
313  MPI_Datatype sendtype,
314  void *recvbuf,
315  int recvcnt,
316  MPI_Datatype recvtype,
317  int root,
318  MPI_Comm comm);
319 
323 int TLM_AMPI_Scatter(void *sendbuf,
324  int sendcnt,
325  MPI_Datatype sendtype,
326  void *recvbuf,
327  int recvcnt,
328  MPI_Datatype recvtype,
329  int root,
330  MPI_Comm comm);
331 
335 int FW_AMPI_Allgather(void *sendbuf,
336  int sendcount,
337  MPI_Datatype sendtype,
338  void *recvbuf,
339  int recvcount,
340  MPI_Datatype recvtype,
341  MPI_Comm comm);
342 
346 int BW_AMPI_Allgather(void *sendbuf,
347  int sendcount,
348  MPI_Datatype sendtype,
349  void *recvbuf,
350  int recvcount,
351  MPI_Datatype recvtype,
352  MPI_Comm comm);
353 
357 int TLM_AMPI_Allgather(void *sendbuf,
358  int sendcount,
359  MPI_Datatype sendtype,
360  void *recvbuf,
361  int recvcount,
362  MPI_Datatype recvtype,
363  MPI_Comm comm);
364 
368 int FW_AMPI_Gatherv(void *sendbuf,
369  int sendcnt,
370  MPI_Datatype sendtype,
371  void *recvbuf,
372  int *recvcnts,
373  int *displs,
374  MPI_Datatype recvtype,
375  int root,
376  MPI_Comm comm);
377 
382 int BW_AMPI_Gatherv(void *sendbuf,
383  int sendcnt,
384  MPI_Datatype sendtype,
385  void *recvbuf,
386  int *recvcnts,
387  int *displs,
388  MPI_Datatype recvtype,
389  int root,
390  MPI_Comm comm);
391 
395 int TLM_AMPI_Gatherv(void *sendbuf,
396  int sendcnt,
397  MPI_Datatype sendtype,
398  void *recvbuf,
399  int *recvcnts,
400  int *displs,
401  MPI_Datatype recvtype,
402  int root,
403  MPI_Comm comm);
404 
408 int FW_AMPI_Scatterv(void *sendbuf,
409  int *sendcnts,
410  int *displs,
411  MPI_Datatype sendtype,
412  void *recvbuf,
413  int recvcnt,
414  MPI_Datatype recvtype,
415  int root, MPI_Comm comm);
416 
421 int BW_AMPI_Scatterv(void *sendbuf,
422  int *sendcnts,
423  int *displs,
424  MPI_Datatype sendtype,
425  void *recvbuf,
426  int recvcnt,
427  MPI_Datatype recvtype,
428  int root, MPI_Comm comm);
429 
434 int TLM_AMPI_Scatterv(void *sendbuf,
435  int *sendcnts,
436  int *displs,
437  MPI_Datatype sendtype,
438  void *recvbuf,
439  int recvcnt,
440  MPI_Datatype recvtype,
441  int root, MPI_Comm comm);
442 
446 int FW_AMPI_Allgatherv(void *sendbuf,
447  int sendcnt,
448  MPI_Datatype sendtype,
449  void *recvbuf,
450  int *recvcnts,
451  int *displs,
452  MPI_Datatype recvtype,
453  MPI_Comm comm);
454 
459 int BW_AMPI_Allgatherv(void *sendbuf,
460  int sendcnt,
461  MPI_Datatype sendtype,
462  void *recvbuf,
463  int *recvcnts,
464  int *displs,
465  MPI_Datatype recvtype,
466  MPI_Comm comm);
467 
472 int TLM_AMPI_Allgatherv(void *sendbuf,
473  int sendcnt,
474  MPI_Datatype sendtype,
475  void *recvbuf,
476  int *recvcnts,
477  int *displs,
478  MPI_Datatype recvtype,
479  MPI_Comm comm);
480 
484 int FW_AMPI_Bcast(void* buf,
485  int count,
486  MPI_Datatype datatype,
487  int root,
488  MPI_Comm comm);
489 
493 int BW_AMPI_Bcast(void* buf,
494  int count,
495  MPI_Datatype datatype,
496  int root,
497  MPI_Comm comm);
498 
502 int TLM_AMPI_Bcast(void* buf,
503  int count,
504  MPI_Datatype datatype,
505  int root,
506  MPI_Comm comm);
507 
511 int FWB_AMPI_Reduce(void* sbuf,
512  void* rbuf,
513  int count,
514  MPI_Datatype datatype,
515  MPI_Op op,
516  int root,
517  MPI_Comm comm);
518 
522 int FWS_AMPI_Reduce(void* sbuf,
523  void* rbuf,
524  int count,
525  MPI_Datatype datatype,
526  MPI_Op op,
527  int root,
528  MPI_Comm comm) ;
529 
530 
534 int BWB_AMPI_Reduce(void* sbuf,
535  void* rbuf,
536  int count,
537  MPI_Datatype datatype,
538  MPI_Op op,
539  int root,
540  MPI_Comm comm);
541 
545 int BWS_AMPI_Reduce(void* sbuf, void* sbufb,
546  void* rbuf, void* rbufb,
547  int count,
548  MPI_Datatype datatype, MPI_Datatype datatypeb,
549  MPI_Op op, TLM_userFunctionF* uopd,
550  int root,
551  MPI_Comm comm) ;
552 
556 int TLB_AMPI_Reduce(void* sbuf,
557  void* rbuf,
558  int count,
559  MPI_Datatype datatype,
560  MPI_Op op,
561  int root,
562  MPI_Comm comm);
563 
567 int TLS_AMPI_Reduce(void* sbuf, void* sbufd,
568  void* rbuf, void* rbufd,
569  int count,
570  MPI_Datatype datatype, MPI_Datatype datatyped,
571  MPI_Op op, TLM_userFunctionF* uopd,
572  int root,
573  MPI_Comm comm) ;
574 
578 int FW_AMPI_Allreduce(void* sbuf,
579  void* rbuf,
580  int count,
581  MPI_Datatype datatype,
582  MPI_Op op,
583  MPI_Comm comm);
584 
588 int BW_AMPI_Allreduce(void* sbuf,
589  void* rbuf,
590  int count,
591  MPI_Datatype datatype,
592  MPI_Op op,
593  MPI_Comm comm);
594 
598 int TLM_AMPI_Allreduce(void* sbuf,
599  void* rbuf,
600  int count,
601  MPI_Datatype datatype,
602  MPI_Op op,
603  MPI_Comm comm);
604 
608 int AMPI_Type_create_struct (int count,
609  int array_of_blocklengths[],
610  MPI_Aint array_of_displacements[],
611  MPI_Datatype array_of_types[],
612  MPI_Datatype *newtype);
613 
614 int AMPI_Type_create_resized (MPI_Datatype oldtype,
615  MPI_Aint lb,
616  MPI_Aint extent,
617  MPI_Datatype *newtype);
618 
622 int AMPI_Op_create(MPI_User_function *function,
623  int commute,
624  MPI_Op *op);
625 
631 int FW_AMPI_Win_create( void *base,
632  MPI_Aint size,
633  int disp_unit,
634  MPI_Info info,
635  MPI_Comm comm,
636  AMPI_Win *win
637  );
638 
639 int BW_AMPI_Win_create( void *base,
640  MPI_Aint size,
641  int disp_unit,
642  MPI_Info info,
643  MPI_Comm comm,
644  AMPI_Win *win
645  );
646 
647 int FW_AMPI_Win_free( AMPI_Win *win );
648 
649 int BW_AMPI_Win_free( AMPI_Win *win );
650 
651 int FW_AMPI_Get( void *origin_addr,
652  int origin_count,
653  MPI_Datatype origin_datatype,
654  int target_rank,
655  MPI_Aint target_disp,
656  int target_count,
657  MPI_Datatype target_datatype,
658  AMPI_Win win
659  );
660 
661 int BW_AMPI_Get( void *origin_addr,
662  int origin_count,
663  MPI_Datatype origin_datatype,
664  int target_rank,
665  MPI_Aint target_disp,
666  int target_count,
667  MPI_Datatype target_datatype,
668  AMPI_Win win
669  );
670 
671 int FW_AMPI_Get( void *origin_addr,
672  int origin_count,
673  MPI_Datatype origin_datatype,
674  int target_rank,
675  MPI_Aint target_disp,
676  int target_count,
677  MPI_Datatype target_datatype,
678  AMPI_Win win
679  );
680 
681 int BW_AMPI_Put( void *origin_addr,
682  int origin_count,
683  MPI_Datatype origin_datatype,
684  int target_rank,
685  MPI_Aint target_disp,
686  int target_count,
687  MPI_Datatype target_datatype,
688  AMPI_Win win
689  );
690 
691 int FW_AMPI_Win_fence( int assert,
692  AMPI_Win win );
693 
694 int BW_AMPI_Win_fence( int assert,
695  AMPI_Win win );
696 
697 
698 
699 #if defined(__cplusplus)
700 }
701 #endif
702 
703 #endif