Replace gcc with hcc for compiling and linking
Replace g++ with hcp for compiling and linking
You may have to add -I/usr/include/mpi2c++ to the compiling command line
Add the -lmpi in the linking command line
When the executable is ready, launch the cluster with the command
lamboot -v
Run the application with the following command:
mpirun -np 16 executable_name
in which 16 can be replaced by any number of processes (2, 4, etc.)
When you are done with your experiences, stop the cluster with the command
wipe -v
Beowulf clusster instrunctions
If you use bash, you must type the following command before
the lamboot command:
export LAMRSH=/usr/bin/rsh
An easy way to check if you're using bash is to type ps
from a terminal. The list of processes must contain the shell you're
using. You can also type tcsh before lamboot if you're using
bash to avoid typing the previous command.
Links