Next: Creating HeNCE Programs Up: Installing and Testing Previous: Installing and Testing

Testing the HeNCE/PVM Installation

Assuming you obtained them, A good way to test that HeNCE and PVM are correctly installed is to build and run one of the example programs that is supplied with HeNCE.

  1. Use the UNIX cd command to change to directory ``hence-examples/static_integ'' and enter ``ls'' to be sure that files PrintAns.c, SetInputs.c, simp.c, and static_integ.gr are present. The directory hence-examples is created when you extract the files in hence-2.0-examples.tar.Z.uu.

  2. Run htool in the background by entering ``htool &'' and then pick ``Load'' from the File menu in the HeNCE Graph part of the htool window. Click on file static_integ.gr so that it appears in the filename box and then click on OK. A HeNCE graph should appear in the window. This program integrates 1/x from 1.0 to 10.0 in parallel by having one simp node integrate from 1.0 to 4.5 while the other integrates from 4.5 to 10.0. The results are then summed and printed by node PrintAns. This is a toy example to get you started.

  3. Build the program by selecting ``Build'' from the Build menu on the PVM Console half of the htool window. Watch for error messages, but there should be none.

  4. Run the program by picking ``Run Program'' from the Run menu on the PVM Console half of the htool window. The program will be animated as it runs. By default, the program will run on the machine on which you are running htool.

  5. When the program finishes, it will print the answer in the PVM Console window. At this point, pick ``Exit Run Mode'' from the PVM Console Run Menu.

  6. Pick ``Halt PVM'' from the PVM menu of the PVM Console half of the htool window. If you fail to do this, you will leave PVM daemon processes running when you exit htool.

  7. Exit htool by picking ``Quit'' from the HeNCE Menu at the upper left of the htool window, just above the ``mode:'' text line.

At this point, you should probably read the rest of this manual before attempting to do much more with HeNCE. There is a detailed tutorial example below that guides you through creating a program and running it on multiple machines.



Next: Creating HeNCE Programs Up: Installing and Testing Previous: Installing and Testing


newton@utkcs.cs.utk.edu
Wed Jun 15 15:13:55 EDT 1994