Making and running an example


Up: Quick Start Next: Programming Tips Previous: Configuring

There are sample MPI applications in the MPICH SDK examples nt directory. They can be built with Microsoft Visual Studio 6.x, Visual Fortran 6.x, gcc and g77.

    1. Open the MSDEV workspace file found in MPICH SDK examples nt examples.dsw.
    2. Build the Debug target of the cpi project.
    3. Copy MPICH SDK examples nt basic Debug cpi.exe to a shared directory or to the same place on all the machines in your cluster. For example you could copy cpi.exe to c: temp cpi.exe on all the nodes.
    4. Open a command prompt and change to the directory where you placed cpi.exe.
    5. Execute ' MPICH mpd bin mpirun.exe -np 4 cpi'.



Up: Quick Start Next: Programming Tips Previous: Configuring