How to configure MPICH2 under windows

Categories: CFD Software Use



  1. Install MPICH2 version 1.4.1p1 on your machine using the installer downloaded from the downloads page Be aware to choose either a 32-bit version or 64-bit one depending on your machine.

  2. Uninstall any previous installed MPI Library including MPICHINTEL MPIOPEN MPI etc.

  3. During installation select MPICH2 to be installed for Everyone.

  4. Also make sure that you keep the default setting for passphrase (usually behappy) during the installation.

  5. 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.

  6. 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.


  1. Add the installed directorybin to your environment path

2.In the Administrator command prompt type the following commands in sequence:

[php]smpd -install


mpiexec -register

mpiexec -validate (it should return SUCCESS)

smpd -status (it should return ‘smpd running on ‘)[/php]

If the last two commands are successfully´╝îthen go to next step.



find a example under /MPICH2/examples

just like “mpiexec -n 2 cpi.exe” perfect !!!



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

comments powered by Disqus