Building a Windows Parallel cluster

Source: Internet
Author: User

The experimental environment is as shown

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/36/wKiom1Ucm-riidgbAAL4weXTVJ0031.jpg "title=" Chaosuan.jpg "alt=" Wkiom1ucm-riidgbaal4wextvj0031.jpg "/>

which DC and DHCP installed configuration complete

One: DC -Side settings

1. Create organizational unit IT and create user Bobin it(slightly)

2. REDIRECT computer default container

in the CMD command Prompt input:redircmp ou=it,dc=wjcyf,dc=com

3. create a new two folder under the domain controller D drive software and MPI, and set the share,the software share permission is the default,the MPI share permission is " Full Control (this folder will be the program shared folder for all compute nodes)

4. download Mpich2-1.4.1p1-win-ia32.msi to the following URL and upload it to the shared folder software

Http://www.mpich.org/static/tarballs/1.4.1p1/mpich2-1.4.1p1-win-ia32.msi

5. go to the following URL to download vcredist_x86.exe and respectively. NETFramework2.0 SP2 and its patches are also uploaded to the shared folder software

http://www.microsoft.com/zh-cn/download/details.aspx?id=5638

http://www.microsoft.com/zh-cn/download/details.aspx?id=1639

Http://download.microsoft.com/download/C/6/A/C6ADC586-2518-404B-8973-E1E22C556AF4/NDP20SP2-KB958481-x86.exe

■ User home folder settings

1. Open Active Directory Users and Computers, click IT, right -click User Bob Select "Properties"-"profile", the steps that need to be done are shown in the Red section

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/31/wKioL1UcnV6jqGy0AAHUBcZTiOk961.jpg "title=" Home folder settings. png "alt=" wkiol1ucnv6jqgy0aahubcztiok961.jpg "/>

. Group Policy settings

1. Open Active Directory Users and Computers, right-click the organizational unit IT Select "Properties"-"Group Policy", click "New" to create a new GPO named MPICH2 GPO , as shown

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/31/wKioL1UcnXmAvzK5AAHy6BWh_tE762.jpg "title=" New Gpo.png "alt=" Wkiol1ucnxmavzk5aahy6bwh_te762.jpg "/>

2. Click New "MPICH2 GPO", click "Edit", select "Computer Configuration"-"Administrative Templates"-"Network"-"Network Connection"-"Windows Firewall"-"Domain Profile", double click " Windows Firewall: Protect all network connections, openthe Windows Firewall: Protect all network connection Properties dialog box, select Disabled and click Apply-OK, as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5C/31/wKioL1UcnYywZAJzAAKIsU0NLqA393.jpg "title=" Firewall Group Policy setting. png "alt=" wkiol1ucnyywzajzaakisu0nlqa393.jpg "/>

Two: Client (compute node) settings

1. two nodes are installed XP SP3 x86 system,IP address for automatic acquisition

2. log in as local administrator, and restart after domain

3. Log in as domain Administrator wjcyf\administrator , both compute nodes are installed Vcredist_x86.exe under shared path \\03dc1\SoftWare$ and . NET Framework2.0 SP2 and their hotfixes

4. Vcredist_x86.exe and . NETFramework2.0 SP2 and its patches after installation, then install mpich2-1.4.1p1-win-ia32.msi, installation path by default, be sure to select "Everyone" Can be used, the remaining step by step installation, as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5C/36/wKiom1UcnHfAUOUgAAGbUJgBREI298.jpg "title=" Select Evr.png "alt=" Wkiom1ucnhfauougaagbujgbrei298.jpg "/>


Note: Win7 must be installed with administrator user, MPICH2_SMPD service will start normally


5. check that all compute node MPICH2 are installed successfully, open the Windows Task Manager and check if there is a smpd.exe process, as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/31/wKioL1UcnceBvIDbAAI8RUnBJyc527.jpg "title=" View Smpd.exe. png "alt=" wkiol1ucncebvidbaai8runbjyc527.jpg "/>

6. Check Whether the service MPICH2_SMPD is started and the startup type should be automatic, as shown in

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5C/31/wKioL1UcndTzN6fPAAG5e72bI04214.jpg "title=" Mpich2 _SMPD service. png "alt=" wkiol1ucndtzn6fpaag5e72bi04214.jpg "/>

7. Add Environment Variables

On all compute nodes, right-click "My Computer"-"Properties"-"advanced"-"environment variables", found in system variables "Path" variable-"edit", enter "at the end of the variable value"; C:\Program Files\mpich2\bin " , finally click "OK" three times to complete the add, as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/38/wKiom1UcpcazWg28AAID1nFChDw829.jpg "title=" Add a variable. png "alt=" wkiom1ucpcazwg28aaid1nfchdw829.jpg "/>


Three: MPICH2 Configuration

1. Log in to any compute node as a domain user wjcyf\bob

2. Select "Start"-"All Programs"-"MPICH2"-"wmpiregister", Open the Registration dialog box, enter the username wjcyf\bob and password and click "Register" and finally click "OK" to exit, as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/31/wKioL1UcnefjdWOIAAE97zNg-xw486.jpg "title=" Registered user. png "alt=" wkiol1ucnefjdwoiaae97zng-xw486.jpg "/>

3. Select "Start"-"All Programs"-"MPICH2"-"wmpiconfig", first click "gethosts" below will list all nodes, and then click " Scan Hosts"So the MPICH2 version installed on each node will be listed after the node, and finally click"Apply All"-"OK"to complete the configuration, as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/36/wKiom1UcnLrih5iOAAJqNOi3Mxg851.jpg "title=" Select Xp1he xp2.png "alt=" Wkiom1ucnlrih5ioaajqnoi3mxg851.jpg "/>

4. Copy the C:\ProgramFiles\MPICH2\examples to Z: under the disk (all the programs to be calculated later, put them under the change disk)

5. Create a file named Hosts.txt under Z disk , as follows:

Xp1

Xp2

Note: You only need to register once on the commit node

Four: Run the program

◆ GUI mode (single node)

1. Select "Start"-"All Programs"-"MPICH2"-"wmpiexec.exe", fill in the relevant parameters (using 2 cores), as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/38/wKiom1UcpiODMbFMAAIpzzFmbWU276.jpg "title=" GUI single node. png "alt=" wkiom1ucpiodmbfmaaipzzfmbwu276.jpg "/>

2. finally click "Execute" execution, enter a value like 56888888, press Enter to execute, press CTRL + C key to end, as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/38/wKiom1Ucpk-hCiEQAAGZfToGr54315.jpg "title=" GUI single-node input value. png "alt=" wkiom1ucpk-hcieqaagzftogr54315.jpg "/>

◆ GUI mode (multi-node)

1. Select "Start"-"All Programs"-"MPICH2"-"wmpiexec.exe", fill in the relevant parameters (two nodes, 2 cores per node ), as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/31/wKioL1UcngrBHIeBAANtbqTwIx4399.jpg "title=" Fill in the relevant parameters. png "alt=" wkiol1ucngrbhiebaantbqtwix4399.jpg "/>

2. finally click "Execute" execution, enter a value like 56888888, press Enter to execute, press CTRL + C key to end, as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/37/wKiom1UcnODy0Pl1AAGPjwg3JZo120.jpg "title=" Enter the calculated value. png "alt=" wkiom1ucnody0pl1aagpjwg3jzo120.jpg "/>

◆ command line mode (single node)

1.win+r Open a cmd command prompt, enter the following command and execute (using 2 cores) as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5C/38/wKiom1UcpyCzsyunAAHzglT7mEY598.jpg "title=" Command line single node. png "alt=" wkiom1ucpyczsyunaahzglt7mey598.jpg "/>

◆ command-line mode (multi-node)

1. Win+r Open the cmd command prompt, enter the following command and execute (two nodes, 2 cores per node ) as shown in

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/33/wKioL1UcqI_ggmnCAAIOyE2Adcc801.jpg "title=" command line Multi-node. png "alt=" wkiol1ucqi_ggmncaaioye2adcc801.jpg "/>

there is 2 Each compute node participates in the calculation

This article from "Never Stop" blog, declined reprint!

Building a Windows Parallel cluster

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.