6
* This header file declares the public C API to tcgmsg.
14
void tcg_alt_pbegin(int *argc, char **argv[])
16
tcgi_pbegin(*argc, *argv);
20
void tcg_brdcst(long type, void *buf, long lenbuf, long originator)
23
long alenbuf = lenbuf;
24
long aoriginator = originator;
26
BRDCST_(&atype, buf, &alenbuf, &aoriginator);
30
void tcg_dgop(long type, double *x, long n, char *op)
37
ax = (double*)malloc(n * sizeof(double));
41
DGOP_(&atype, ax, &an, op, strlen(op));
51
return ( (double) random() ) * 4.6566128752458e-10;
55
void tcg_igop(long type, long *x, long n, char *op)
62
ax = (long*)malloc(n * sizeof(long));
66
IGOP_(&atype, ax, &an, op, strlen(op));
80
long tcg_mdtob(long n)
88
long tcg_mdtoi(long n)
96
long tcg_mitob(long n)
104
long tcg_mitod(long n)
118
long tcg_niceftn(long ival)
122
return NICEFTN_(&aival);
138
long tcg_nxtval(long mproc)
142
return NXTVAL_(&roc);
146
void tcg_error(char *msg, long code)
154
void tcg_pbegin(int argc, char **argv)
156
tcgi_pbegin(argc,argv);
178
void tcg_pfcopy(long type, long node0, char *fname)
183
PFILECOPY_(&atype, &anode0, fname);
187
long tcg_probe(long type, long node)
192
return PROBE_(&atype, &anode);
196
void tcg_rcv(long type, void *buf, long lenbuf, long *lenmes,
197
long nodeselect, long *nodefrom, long sync)
200
long alenbuf = lenbuf;
201
long alenmes = *lenmes;
202
long anodeselect = nodeselect;
203
long anodefrom = *nodefrom;
206
RCV_(&atype, buf, &alenbuf, &alenmes, &anodeselect, &anodefrom, &async);
209
*nodefrom = anodefrom;
213
void tcg_setdbg(long value)
221
void tcg_snd(long type, void *buf, long lenbuf, long node, long sync)
224
long alenbuf = lenbuf;
228
SND_(&atype, buf, &alenbuf, &anode, &async);
232
void tcg_srand48(long seed)
234
unsigned int aseed = seed;
246
void tcg_synch(long type)
266
void tcg_waitcom(long node)