Running the application using pvmmake



next up previous contents
Next: Other pvmmake config Up: Running the Parallel Previous: Running the application

Running the application using pvmmake

 

To run the compiled parallel application using pvmmake a new pvmmake config file must be created. This config file will consist of only one host - the development host. There will be no files associated with this host and only one command. This command will be to launch the parallel program.

To run the manager/worker example using this method, the user again chooses the Setup button in the PADE main window to call the Setup window. Delete any information that is currently in this window. Now select the Add Host button and enter the name of the development host in the Host name text-entry box. In the Host command box enter the following.

cd $HOME/pvm3/bin/$PVM_ARCH; manager < manager.input
Now select the Save button in the Add Host window; the window will exit. Next select the Save File button and save the new setup information to a file. Finally select the Done button to exit the Setup window.

The last task that must be performed by the user is to create a file called manager.input to be located in the directory specified in the command given to pvmmake and shown above. This can be done outside of the PADE environment. This file should contain only a number. The number of worker programs the user desires to be spawned by the manager program.

To run the parallel application using pvmmake, the user chooses the Run pvmmake menu-entry in the Run menu in the PADE main window. It is recommended that the user view the pvmmake config file before running pvmmake. Once the application has been launched using pvmmake, a display window will appear containing output similar to the following.

Reading in configuration file: 
/mithrandir/nist/edwards/test_pade/ms_run_with_pvmmake.pvmmake

Your virtual machine configuration is:
262144 mithrandir.nist.org RS6K 1000
524288 galadriel.nist.org SUN4 1000
786432 shadowfax.nist.org SUN4 1000
1048576 elrond.nist.org SGIMP 1000

Spawning one process on each machine:
spawned 1 process on mithrandir.nist.org with tid 262154
spawned 1 process on galadriel.nist.org with tid 524294
spawned 1 process on shadowfax.nist.org with tid 786437
spawned 1 process on elrond.nist.org with tid 1048586

COMMAND RESULTS:
@ mithrandir.nist.org manager < manager.input +errors

 How many worker programs (1-32)? 32
 I got 6100.000000 from 31
 I got 2900.000000 from 15
 I got 2700.000000 from 14
 I got 2500.000000 from 13
 I got 2300.000000 from 12
 I got 2100.000000 from 11
 I got 1900.000000 from 10
 I got 1700.000000 from 9
 I got 5900.000000 from 30
 I got 5700.000000 from 29
 I got 5500.000000 from 28
 I got 5300.000000 from 27
 I got 5100.000000 from 26
 I got 4900.000000 from 25
 I got 300.000000 from 2
 I got 3100.000000 from 0
 I got 1100.000000 from 6
 I got 700.000000 from 4
 I got 900.000000 from 5
 I got 500.000000 from 3
 I got 100.000000 from 1
 I got 1500.000000 from 8
 I got 1300.000000 from 7
 I got 4700.000000 from 24
 I got 4500.000000 from 23
 I got 3900.000000 from 20
 I got 3700.000000 from 19
 I got 3500.000000 from 18
 I got 3300.000000 from 17
 I got 4100.000000 from 21
 I got 4300.000000 from 22
 I got 3100.000000 from 16
 
********** ALL PROCESSES HAVE EXITED **********.
The user can save this output and/or scroll through it at leisure.




Fri Mar 31 20:30:34 EST 1995