Main Page | Modules | Directories | File List | Globals | Related Pages

gm_simple_example_send.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include "gm.h"
#include "gm_simple_example.h"

Detailed Description

Simple Send/Recv for GM Author: Max Stern (Myricom) Based on a program by Cam Macdonell - University of Alberta

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.


Generated on Sat May 20 19:20:42 2006 for GM by  doxygen 1.4.4