Install and configure mpich2 in Windows

Source: Internet
Author: User
Tags dotnet

Reprinted from http://ld-hust.javaeye.com/blog/630915

Mpich2 is the mpich implementation version that corresponds to the MPI-2, including some functions of the MPI-2 relative to the extended MPI-1, such as dynamic task management, parallel I/O and so on. The latest version is MPICH2-1.0.5.

2.3.1 install and configure mpich2 for Microsoft Windows

Install mpich2 for Microsoft Windows with the following requirements:

1. Windows 2003/XP Professional or server (Windows 95/98 is not supported)

2. All Hosts must be able to establish TCP/IP connections

3. mpich supports the following compilers: Ms VC ++ 6.x, ms vc ++. net, Compaq Visual Fortran 6.x, intel Fortran, GCC, and G77. To install mpich, you must log on as an administrator.

This experiment uses the mpich2 for microoft Windows Version 1.0.5p2,

Run the command after downloading and install it. Yes: http://www-unix.mcs.anl.gov/mpi/

Mpich/downloads/mpich2-1.0.5p2-win32-ia32.msi.

Log on to each host as an administrator and create the same account on all hosts (you can also use different user names and accounts for each machine, and then create a configuration file, run the program using the command line), and then run the downloaded Installation File to install mpich on each host.

Open the progress logging card in the task manager, and there is an smpd.exe process. If yes, the installation is successful. The process runs automatically each time the system is started.

Add the mpich2 path to windows so that you can use mpiexec in any path later:

1. Right-click "my computer" and click Properties.

2. Select the advanced tag.

3. Select environment variables.

4. under system variables, select the PATH variable and click Edit. add "C:/mpich2/bin" to the end of the list. separate it from the previous path with a semicolon.

After mpich2 is installed, you must register and configure each computer for use. The registration must be performed on each computer, and the configuration only needs to be executed on the master computer. The purpose of registration is to register the account and password previously applied on each computer to mpich2 so that mpich2 can access each host in the network environment. Configuration method: Run "mpich/MPD/bin/wmpiregister.exe" wmpiregister run interface 2.1:

 

Figure 2.1 wmpiregister running interface

The setting of the program is very simple. You only need to enter the user name you are currently using to log on to windows in the account. Note that it must be administrator permission. Enter the password corresponding to this user name in the password. Mpich2 cannot use a user without a password. If the current user does not have a password, create one for it and then run wmpiregister for configuration. After entering the information, click Register. The password encrypted into the registry is displayed, indicating that the registration is successful. Click the register button, the above information will be written to the hard disk, otherwise it will be stored in the memory and will not exist after the restart.

In order for programs to run on many hosts, the host must know the information of the currently available hosts without creating a configuration file. In this case, you need to run the configuration program of mpich2 for configuration.

The configuration program provided by mpich2 is a graphical interface program, which can be started from "start-> Program-> mpich2-> wmpiconfig.exe. The Page 2.2 After startup is shown as follows:

 

Figure 2.2 run wmpiconfig.exe

 

Select the current workgroup from the drop-down menu of D omain. click get hosts to view all computers in the Working Group. click scan for version to search for hosts with mpich2 installed. the names and versions of successfully installed hosts are displayed in green. uninstalled items are displayed in gray.

2.3.2 precautions

1. mpich2 for Windows requires at least DOTNET frameworks 1.1, So download and install DOTNET frameworks1.1 or 2.0 first. We recommend that you install visual studio2005, which comes with DOTNET frameworks2.0.

2. Assume that mpich2 is installed in the % mpich2root % directory, which contains include, Lib, bin, examples, and jumpshot. Add lib and include to the corresponding directory of VC. Examples is an example program CPI, which contains the source code of C, C ++, and fortun. This example can be used for testing during configuration.

3. mpich2 creates a service mpich2 Process Manager, Argonne National Lab, and provides the service image % mpich2root %/bin/SMPD. This program is the Process Manager of mpich2.

4. mpich2 also requires an account to run. If you create a local account mpiaccount, make sure that the running accounts of all the machines participating in the cluster are the best.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.