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