windows下MPICH2安装

下载

http://www.mcs.anl.gov/research/projects/mpich2staging/goodell/downloads/index.php?s=downloads

安装

1. Install MPICH2 version 1.4.1p1 on your machine using the installer downloaded from the downloads page http://www.mpich.org/downloads. Be aware to choose either a 32-bit version or 64-bit one depending on your machine.
2. During installation select MPICH2 to be installed for Everyone.
3. Also make sure that you keep the default setting for passphrase (usually behappy) during the installation.
4. After installing MPICH2 successfully, you may add rules to your firewall to allow the programs mpiexec.exe and smpd.exe to communicate through firewall. This process depends on your firewall.
5. You need to add the bin folder of MPICH2 (usually C: \PROGRAM FILES \MPICH2 \bin) to your PATH. Next, open an admin command prompt by right-clicking on the command prompt icon and selecting run as administrator.

后续工作

In the command prompt type the following commands in sequence: 
smpd -install 
mpiexec -remove 
mpiexec -register 
mpiexec -validate (it should return SUCCESS) 
smpd -status (it should return 'smpd running on <hostname>') 
If the last two commands are successfully,then go to next step.

试运行

find a example under /MPICH2/examples
just like "mpiexec -n 2 mpi.exe"
perfect !!!

注意点

the username and password are users' of your computer, not admin or other invalidate account.

你可能感兴趣的:(windows,安装,MPICH2)