source: git/MP/mp-pvm3/README @ 678cfd

spielwiese
Last change on this file since 678cfd was 678cfd, checked in by Olaf Bachmann <obachman@…>, 27 years ago
This commit was generated by cvs2svn to compensate for changes in r337, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@338 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.4 KB
Line 
1Most of the sample programs here implement a simple master/slave
2paradigm in which the master cooperates with a single slave.  Each
3"master" program takes a commandline argument specifying the transport
4device to use: -MPtransp PVM.  This argument is passed to the "slave"
5in the spawn command.  Some programs take additional arguments, as
6specified below.  The order of the arguments on the commandline does
7not matter.
8
9The PVM convention is to place the Makefile and the source files in
10$HOME/pvm3/bin/src and the executables in $HOME/pvm3/bin/$$PVM_ARCH,
11where $PVM_ARCH specifies the machine architecture (e.g., SUN4).  PVM
12expects the environment variables PVM_ROOT and PVM_ARCH to be set.
13PVM_ROOT specifies the directory where pvm is installed (for example,
14/usr/local/pvm3).  See the PVM3 documentation for details.
15
16The Makefile assumes that MP has been installed in the user's home
17directory.  Modify the Makefile accordingly if this is not the
18case. The Makefile makes the examples in the current directory and
19moves the binaries to $HOME/pvm3/bin/$PVM_ARCH.  Once the programs are
20compiled, they can be run in the usual PVM manner.
21
22
23master/slave
24------------
25The master program will prompt for the name of the input file, which
26it sends to the slave.  The input file contains some syntactically
27correct MP trees in ASCII format.  Three example files are given in
28this directory (test.ex1, test.ex2, test.ex3, test.ex4).  The slave
29reads the MP trees from the file (which it expects to find in the root
30of your home directory), converts them to the MP format and returns
31them to the master, which outputs them in ASCII format and prints them
32to the file /tmp/test.out.  The master takes an optional argument
33-remhost giving the name of the remote host on which to run the slave.
34If -remhost is missing, pvm chooses the remote host. To run this
35example, type: master -MPtransp PVM [-remhost <remote hostname>]
36
37
38put-tree/get-tree
39-----------------
40Similar to the master/slave programs, except that the put-tree program
41takes a command line argument -infile specifying the name of the input
42file containing ASCII version of the MP tree, which it reads in,
43converts to the MP format, and puts to the get-tree process, which
44converts the trees back to ASCII and writes them to /tmp/get-tree.out.
45put-tree also takes the optional -remhost argument as described for
46the master/slave example.  To run this example, type:
47put-tree -MPtransp PVM -infile <testfilename> [-remhost <rem host>]
48
49
50put-vec/get-vec
51---------------
52Programs for timings for transmitting vectors of integers.  The
53put-vec program sends a vector of integers to the get-vec program
54using the usual pvm integer pack routine as well as the MP put vector
55routine.  The put-vec routine takes two commandline arguments in
56addition to the -MPtransp PVM argument:
57
58-pts    ==> an integer specifying the number of integers to send;
59-iters  ==> an integer specifying the number of times to send the
60            vector of integers.
61
62put-vec also takes the optional argument -remhost, described under the
63master/slave example.
64
65To run this program example type:
66
67put-vec -pts <#pts> -iters <#iters> [-remhost <rem host>] -MPtransp PVM
68
69The output is stored in a file mp-pvm.dat in the current directory.
70
71mcast-put-tree/mcast-get-tree
72-----------------------------
73Similar to the put/get-tree programs, except there are multiple "slaves"
74who receive the same tree from the "master".
75
76
77
Note: See TracBrowser for help on using the repository browser.