Rev | Line | |
---|
[4775] | 1 | |
---|
| 2 | /* |
---|
| 3 | * Private .h file for MPI |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | #include <unistd.h> |
---|
| 8 | #include <stdlib.h> |
---|
| 9 | #include <stdio.h> |
---|
| 10 | #include <string.h> |
---|
| 11 | |
---|
| 12 | #include "listops.h" |
---|
| 13 | #include "mpi.h" |
---|
| 14 | #include "config.h" |
---|
| 15 | |
---|
| 16 | /* |
---|
| 17 | * MPI_GROUP_ONE must not conflict with MPI_GROUP_NULL or |
---|
| 18 | * MPI_GROUP_EMPTY |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | #define MPI_GROUP_ONE (1) |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | /****************************************************************************/ |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | typedef struct |
---|
| 28 | { |
---|
| 29 | pList sendlist; |
---|
| 30 | pList recvlist; |
---|
| 31 | |
---|
| 32 | int num; |
---|
| 33 | |
---|
| 34 | } Comm; |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | typedef struct |
---|
| 39 | { |
---|
| 40 | pListitem listitem; /* to allow Req to be removed from list */ |
---|
| 41 | |
---|
| 42 | int *buf; |
---|
| 43 | int source; |
---|
| 44 | int tag; |
---|
| 45 | int complete; |
---|
| 46 | |
---|
| 47 | } Req; |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | /****************************************************************************/ |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | extern void *mpi_malloc(int size); |
---|
| 56 | extern void mpi_free(void *ptr); |
---|
| 57 | |
---|
| 58 | extern MPI_Comm mpi_comm_new(void); |
---|
| 59 | |
---|
| 60 | extern void mpi_destroy_handles(void); |
---|
| 61 | extern void mpi_alloc_handle(int *handle, void **data); |
---|
| 62 | extern void *mpi_handle_to_ptr(int handle); |
---|
| 63 | extern void mpi_free_handle(int handle); |
---|
| 64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.