An MPI
version has been developed so that it could
run on cluster with MPI implemented. The interface and usage are almost
the same as simple version described above except a subtle difference.
The intializing function has a different form
All of these inputs are the same as described above except
the first two, the pointers to argc and argv indicating
the arguments from the command line.
In MPI version, the program will divide the evaluation job and distribute
it into multiple processors to speed up the whole performance. Note
that the compiler should be "mpicc" rather than "gcc"
and the run command should be
|
[Number of simulations versus time]
[Speed versus number of processors ]
|
Figure 5 describes the performance of MPI version on threestep model (see Section 4) using a cluster equipped with 3GHz CPUs. An almost linear speed up in the number of processors has been achieved, confirming its great potential for the solution of larger problems.
This document is not for MPI. Please find more information about MPI at http://www-unix.mcs.anl.gov/mpi/mpich/.