1.23
2.0
main
test-branch
| Rev | Line | |
|---|
| [811b0db] | 1 | void send(void *buf, int count, int dest, int tag, int rank) {
|
|---|
| 2 | $atomic{
|
|---|
| 3 | $message out = $message_pack(rank, dest, tag, buf, count*sizeof(double));
|
|---|
| 4 | $comm_enqueue(&MPI_COMM_WORLD, out);}
|
|---|
| 5 | }
|
|---|
| 6 |
|
|---|
| 7 | void recv(void *buf, int count, int source, int tag, int rank) {
|
|---|
| 8 | $atomic{
|
|---|
| 9 | $message in = $comm_dequeue(&MPI_COMM_WORLD, source, rank, tag);
|
|---|
| 10 | $message_unpack(in, buf, count*sizeof(double));}
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.