#include <stdlib.h>#include <stdio.h>#include "gm.h"#include "gm_simple_example.h"Syntax: gm_simple_example_send [<local_board_num>]
The default for <local_board_num> is 0.
Description:
This program, together with gm_simple_example_recv, serves as a super- simple example of sending and receiving in GM, using both the basic send (gm_send type) and the directed send (gm_directed_send type) paradigms.
This program, the "sender" or master process, takes the following main actions (see commentary in the code below for the "how" details):
Usage Note:
Assume the sender is to run on board 1 on hosta, and the receiver on board 0 on hostb. The commands would look like this:
First, on hostb: hostb> gm_simple_example_recv hosta:1
Then, on hosta: hosta> gm_simple_example_send 1
See also the Description in gm_simple_example_recv.c.
1.4.4