1. Download MPICH 1.2.5 from http://www-unix.mcs.anl.gov/mpi/mpich1/download.html
2. Setup all components in MPICH to local disk. For example, C:\Program Files\MPICH
3. Execute MPIRegister.exe in C:\Program Files\MPICH\mpd\bin. Type in the account name and password on this local machine. (NOTE: all the MPI clients should run under the same account and password, or error you will encounter. And firewall need to be disabled on every node.)
4. To verify your installation, you can run a sample program provided by MPI under C:\Program Files\MPICH\SDK\Examples\nt. Please use VC++ 6.0, Visual Studio 2003 .net or Visual Studio 2005 to open the examples.dsw file. Compile all projects to get executable files.
5. Create a folder and put the same executable files you want to execute on every node in this network. In this example I put cpi.exe into this folder.
For example on node1 “C:\MPI”
on node2 “C:\MPI”
on node3 “C:\MPI”
……
6. to execute this program, just type mpirun –np 4 cpi. And it will show some information like this below:
C:\>cd MPI
C:\MPI>mpirun -np 4 cpi
Process 2 on mote.
Process 0 on mote.
Enter the number of intervals: (0 quits)
Process 1 on vmote.
Process 3 on vmote.
C:\MPI>mpirun -np 4 cpi
Process 2 on mote.
Process 0 on mote.
Process 3 on vmote.
Process 1 on vmote.
Enter the number of intervals: (0 quits)
You can see that 2 nodes (mote and vmote) are running parallel.
没有评论:
发表评论