Practical details
There are several MPI-systems available. I have fetched and compiled the LAM/MPI-system (LAM = Local Area Multicomputer). This system comes with the Linux-version as well, but that version does not have support for Fortran90.
This is how you use it:
man bhost
for all the
details). Suppose you want to run on one of our parallel machines,
having four cpus. Login on such a machine and give the command hostname
,
this gives you the full Internet domain name of the parallel computer.
Create a file, bhost
say, containing the full domain
name, followed (on the same line) by cpu=4
lamboot bhost
If this was successful, you should get a printout like:
LAM 7.1.2/MPI 2 C++/ROMIO - Indiana University
mpicc my_prog.c
or mpiCC
my_prog.cc
or mpif77 my_prog.f90
(I have configured the mpif77
-command so you can compile
Fortran90-programs as well. There is no mpif90
-command).
mpirun c0-3 ./a.out
(man mpirun
for details).
lamhalt
.
You only have to perform step 2 once (for each different computer).
Step 3 and 6 you do once for every session. Steps 4 and 5 are iterated
(several) times, probably (unless your program works the first time).