|
|
|
|
/home/brennan/n-sim/OrbisQuartus/shared/mini_mpi.h File Reference
Go to the source code of this file.
|
Defines |
#define | MPI_INIT_PORT 6851 |
#define | MPI_PORT 6853 |
#define | MPI_MSG_LEN 2048 |
#define | MPI_Comm int |
#define | MPI_COMM_WORLD 0x001 |
#define | MPI_Datatype int |
#define | MPI_CHAR 0x010 |
#define | MPI_SHORT 0x011 |
#define | MPI_INT 0x012 |
#define | MPI_LONG 0x013 |
#define | MPI_UNSIGNED_CHAR 0x014 |
#define | MPI_UNSIGNED_SHORT 0x015 |
#define | MPI_UNSIGNED_INT 0x016 |
#define | MPI_UNSIGNED_LONG 0x017 |
#define | MPI_FLOAT 0x018 |
#define | MPI_DOUBLE 0x019 |
#define | MPI_LONG_DOUBLE 0x020 |
#define | MPI_BYTE 0x021 |
#define | MPI_PACKED 0x022 |
#define | MPI_Status int |
#define | MPI_SUCCESS 0x100 |
#define | MPI_Request int |
#define | MINI_MPI_INIT 0x200 |
#define | MINI_MPI_HEAD 0x201 |
#define | MINI_MPI_ABORT 0x204 |
#define | MINI_MPI_FINAL 0x205 |
#define | MINI_MPI_BARRIER 0x207 |
#define | MINI_MPI_RESUME 0x208 |
#define | MINI_MPI_SEND 0x210 |
#define | MINI_MPI_RECV 0x211 |
#define | MINI_MPI_SCATTER 0x215 |
#define | MINI_MPI_GATHER 0x216 |
Functions |
int | MPI_Init (int *argc, char ***argv) |
int | MPI_Initialized (int *flag) |
int | MPI_Comm_size (MPI_Comm comm, int *size) |
int | MPI_Comm_rank (MPI_Comm comm, int *rank) |
int | MPI_Abort (MPI_Comm, int errorcode) |
int | MPI_Finalize (void) |
int | MPI_Send (void *buf, int count, MPI_Datatype type, int dest, int tag, MPI_Comm comm) |
int | MPI_Recv (void *buf, int count, MPI_Datatype type, int source, int tag, MPI_Comm comm, MPI_Status *status) |
int | MPI_Isend (void *buf, int count, MPI_Datatype type, int dest, int tag, MPI_Comm comm, MPI_Request *request) |
int | MPI_Irecv (void *buf, int count, MPI_Datatype type, int source, int tag, MPI_Comm comm, MPI_Request *request) |
int | MPI_Wait (MPI_Request *request, MPI_Status *status) |
int | MPI_Waitall (int count, MPI_Request *request[], MPI_Status *status[]) |
int | MPI_Barrier (MPI_Comm comm) |
int | MPI_Bcast (void *buffer, int count, MPI_Datatype datatype, int root, MPI_Comm comm) |
int | MPI_Scatter (void *sendbuffer, int sendcount, MPI_Datatype sendtype, void *recvbuffer, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm) |
int | MPI_Gather (void *sendbuffer, int sendcount, MPI_Datatype sendtype, void *recvbuffer, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm) |
int | MPI_Comm_socket (MPI_Comm comm, int *sock) |
Define Documentation
#define MINI_MPI_ABORT 0x204 |
|
#define MINI_MPI_BARRIER 0x207 |
|
#define MINI_MPI_FINAL 0x205 |
|
#define MINI_MPI_GATHER 0x216 |
|
#define MINI_MPI_HEAD 0x201 |
|
#define MINI_MPI_INIT 0x200 |
|
#define MINI_MPI_RECV 0x211 |
|
#define MINI_MPI_RESUME 0x208 |
|
#define MINI_MPI_SCATTER 0x215 |
|
#define MINI_MPI_SEND 0x210 |
|
#define MPI_COMM_WORLD 0x001 |
|
|
Definition at line 50 of file mini_mpi.h.
Referenced by MPI_Abort(), MPI_Barrier(), MPI_Bcast(), MPI_Comm_rank(), MPI_Comm_size(), MPI_Comm_socket(), MPI_Gather(), MPI_Irecv(), MPI_Isend(), MPI_Recv(), MPI_Scatter(), and MPI_Send(). |
#define MPI_INIT_PORT 6851 |
|
#define MPI_LONG_DOUBLE 0x020 |
|
#define MPI_SUCCESS 0x100 |
|
|
Definition at line 68 of file mini_mpi.h.
Referenced by MPI_Abort(), MPI_Barrier(), MPI_Bcast(), MPI_Comm_rank(), MPI_Comm_size(), MPI_Comm_socket(), MPI_Finalize(), MPI_Gather(), MPI_Init(), MPI_Initialized(), MPI_Irecv(), MPI_Isend(), MPI_Recv(), MPI_Scatter(), MPI_Send(), MPI_Wait(), and MPI_Waitall(). |
#define MPI_UNSIGNED_CHAR 0x014 |
|
#define MPI_UNSIGNED_INT 0x016 |
|
#define MPI_UNSIGNED_LONG 0x017 |
|
#define MPI_UNSIGNED_SHORT 0x015 |
|
Function Documentation
int MPI_Abort |
( |
MPI_Comm |
, |
|
|
int |
errorcode |
|
) |
|
|
int MPI_Barrier |
( |
MPI_Comm |
comm |
) |
|
|
int MPI_Bcast |
( |
void * |
buffer, |
|
|
int |
count, |
|
|
MPI_Datatype |
datatype, |
|
|
int |
root, |
|
|
MPI_Comm |
comm |
|
) |
|
|
int MPI_Comm_rank |
( |
MPI_Comm |
comm, |
|
|
int * |
rank |
|
) |
|
|
int MPI_Comm_size |
( |
MPI_Comm |
comm, |
|
|
int * |
size |
|
) |
|
|
int MPI_Comm_socket |
( |
MPI_Comm |
comm, |
|
|
int * |
sock |
|
) |
|
|
int MPI_Finalize |
( |
void |
|
) |
|
|
int MPI_Gather |
( |
void * |
sendbuffer, |
|
|
int |
sendcount, |
|
|
MPI_Datatype |
sendtype, |
|
|
void * |
recvbuffer, |
|
|
int |
recvcount, |
|
|
MPI_Datatype |
recvtype, |
|
|
int |
root, |
|
|
MPI_Comm |
comm |
|
) |
|
|
int MPI_Init |
( |
int * |
argc, |
|
|
char *** |
argv |
|
) |
|
|
|
- Todo:
- FIXME: complete setup
Definition at line 59 of file mini_mpi-l4.c.
References error, he, head_addr, MAX_MTU, memcpy, MINI_MPI_HEAD, MINI_MPI_INIT, MPI_INIT_PORT, MPI_PORT, MPI_SUCCESS, my_init, MY_NC, my_numprocs, MY_SOCK, my_socket, my_taskid, socket_ptr_t::nc, string_to_tasks(), task_array, and their_addr. |
int MPI_Initialized |
( |
int * |
flag |
) |
|
|
int MPI_Irecv |
( |
void * |
buf, |
|
|
int |
count, |
|
|
MPI_Datatype |
type, |
|
|
int |
source, |
|
|
int |
tag, |
|
|
MPI_Comm |
comm, |
|
|
MPI_Request * |
request |
|
) |
|
|
int MPI_Isend |
( |
void * |
buf, |
|
|
int |
count, |
|
|
MPI_Datatype |
type, |
|
|
int |
dest, |
|
|
int |
tag, |
|
|
MPI_Comm |
comm, |
|
|
MPI_Request * |
request |
|
) |
|
|
|
- Todo:
- nonblocking send MINI_MPI_SEND
Definition at line 295 of file mini_mpi-l4.c.
References buffer_to_char(), error, MINI_MPI_SEND, MPI_COMM_WORLD, MPI_SUCCESS, my_init, MY_NC, MY_SOCK, task_handle::sock, task_array, type_size(), and vt_send(). |
int MPI_Recv |
( |
void * |
buf, |
|
|
int |
count, |
|
|
MPI_Datatype |
type, |
|
|
int |
source, |
|
|
int |
tag, |
|
|
MPI_Comm |
comm, |
|
|
MPI_Status * |
status |
|
) |
|
|
int MPI_Scatter |
( |
void * |
sendbuffer, |
|
|
int |
sendcount, |
|
|
MPI_Datatype |
sendtype, |
|
|
void * |
recvbuffer, |
|
|
int |
recvcount, |
|
|
MPI_Datatype |
recvtype, |
|
|
int |
root, |
|
|
MPI_Comm |
comm |
|
) |
|
|
int MPI_Send |
( |
void * |
buf, |
|
|
int |
count, |
|
|
MPI_Datatype |
type, |
|
|
int |
dest, |
|
|
int |
tag, |
|
|
MPI_Comm |
comm |
|
) |
|
|
|
Definition at line 206 of file mini_mpi-l4.c.
References buffer_to_char(), error, MINI_MPI_SEND, MPI_COMM_WORLD, MPI_SUCCESS, my_init, MY_NC, MY_SOCK, task_handle::sock, task_array, type_size(), and vt_send(). |
int MPI_Wait |
( |
MPI_Request * |
request, |
|
|
MPI_Status * |
status |
|
) |
|
|
int MPI_Waitall |
( |
int |
count, |
|
|
MPI_Request * |
request[], |
|
|
MPI_Status * |
status[] |
|
) |
|
|
|