Let's say you have a network of three
machines---`white-elephant.cs.uiuc.edu',
`indigo-rilla.cs.uiuc.edu', and
`purple-finch.cs.uiuc.edu'---connected via an 8-port Myrinet
switch. `white-elephant' is connected to port 2,
`indigo-rilla' is connected to port 3, and `purple-finch'
is connected to port 7. Each machine has a single LANai 4.1
host interface. You decide to run hellos on
`white-elephant' and hellor on `purple-finch'.
First, you have to create a network configuration file, let's say we
call it
`/users/me/fmthings/netconfig'. That file should look
like the following:
0 - - white-elephant.cs.uiuc.edu - - - - purple-finch.cs.uiuc.edu
Note that `indigo-rilla' is absent from the `netconfig' file,
because it is not going to run hellos or
hellor.(3)
The next step is to set the FM environment variables. Assuming your
shell is csh (or another shell with similar syntax), you'd type
something like:
% setenv FMCONFIGFILE /users/me/fmthings/netconfig % setenv FMLCPFILE /usr/local/fm/etc/lcp32
on each of `white-elephant' and `purple-finch'. Since
hellos and hellor are distributed in source form only,
you'll need to compile and link them.(4)
% gmake
(If you're using the older, 16-bit Myrinet boards, you'll need either to
edit the `Makefile' first or specify `LANAI_ARCH=LANAI16' on
the gnake command line. See the comments in the `Makefile'
for more information.)
Finally, you're ready to run the programs. Note that FM will assign node number 0 to `purple-finch' and node number 1 to `white-elephant', because node numbers are assigned alphabetically, by default. You therefore run:
% hellos 0 FM: Synchronizing with other nodes...
on `white-elephant' to send the string `Hello, world' to node 0, i.e. `purple-finch', and:
% hellor FM: Synchronizing with other nodes...
on `purple-finch' to receive the message and output it:
% hellos 0 FM: Synchronizing with other nodes...done. FM: Started Fast Messages on node 1 %
% hellor FM: Synchronizing with other nodes...done. FM: Started Fast Messages on node 1 Hello, world. Received 128 bytes. %
Go to the first, previous, next, last section, table of contents.