Under the `examples' directory, you will find example programs for the FM, MPI, GA, and SHMEM API's. These example programs are helpful to make a simple check that HPVM 1.9 is installed correctly and to show a working reference implementation of the different API's. If you have performed only Compute Node setup, then prebuilt binaries are in the `etc' directory. The prebuilts are provided so that the a cluster setup can be tested without requiring the user to build the example programs
To run any of the examples, the FM runtime must be installed correctly before you can run the example programs.
If you have installed the Development Environment, then the example programs have been installed.
In each example subdirectory under a command window use: nmake -f Makefile.NT to compile the examples.
For a given example, say `bw.exe', do the following to run the program without the HPVM front-end and LSF:
In each of two command windows, enter bw 2048 1000 mytest to run a two-process bandwidth test. The first argument is the size of the message to send, the second corresponds to the number of messages to send. Finally, `mytest' is the program key that is used by the programs to locate each other at initialization. You should try running the bandwidth test in two windows on a single machine first, and then do a node-to-node test.
If the programs appear to hang, you should verify that the
In the first command window, you should see something similar to D:\HPVM\etc> bw 2048 1000 mytest FM: Initializing...done FM: Started Fast Messages on node 0. Message size : 2048 bytes No. messages : 1000 Avg. bandwidth: 101.5 MB/s In the second command window, you should see something similar to D:\HPVM\etc> bw 2048 1000 mytest FM: Initializing...done FM: Started Fast Messages on node 1. bw: Received 1005 messages. Note that the bandwidth test sends 5 ``warmup'' messages to insure that the host processors have scheduled the bw program for execution.
Go to the first, previous, next, last section, table of contents.