Go to the documentation of this file.
10 #ifndef __COMMUNICATOR_INCLUDED
11 #define __COMMUNICATOR_INCLUDED
52 static int init(
int *pargc,
char ***pargv);
78 static int setup(
int ninstance = 1);
86 static int nodeid() {
return self(); }
89 #ifdef ENABLE_MULTI_INSTANCE
90 static int self_global();
91 static int world_id();
95 static int ipe(
const int dir);
96 static int npe(
const int dir);
105 #ifdef ENABLE_MULTI_INSTANCE
106 static int sync_global();
110 static int broadcast(
int count,
double *data,
int sender);
111 static int broadcast(
int count,
int *data,
int sender);
112 static int broadcast(
int count,
string& data,
int sender);
114 static int exchange(
int count,
double *recv_buf,
double *send_buf,
int idir,
int ipm,
int tag);
115 static int exchange(
int count,
int *recv_buf,
int *send_buf,
int idir,
int ipm,
int tag);
117 static int send_1to1(
int count,
double *recv_buf,
double *send_buf,
int p_to,
int p_from,
int tag);
118 static int send_1to1(
int count,
int *recv_buf,
int *send_buf,
int p_to,
int p_from,
int tag);
120 static int reduce_sum(
int count,
double *recv_buf,
double *send_buf,
int pattern = 0);
121 static int reduce_sum(
int count,
int *recv_buf,
int *send_buf,
int pattern = 0);
123 static int reduce_max(
int count,
double *recv_buf,
double *send_buf,
int pattern = 0);
124 static int reduce_max(
int count,
int *recv_buf,
int *send_buf,
int pattern = 0);
126 static int reduce_min(
int count,
double *recv_buf,
double *send_buf,
int pattern = 0);
127 static int reduce_min(
int count,
int *recv_buf,
int *send_buf,
int pattern = 0);
147 static int exchange(
size_t size,
void *recv_buf,
void *send_buf,
int idir,
int ipm,
int tag);
149 static int send_1to1(
size_t size,
void *recv_buf,
void *send_buf,
int send_to,
int recv_from,
int tag);