Tags

, , , , , , , , , ,


In this I will discuss about how you could make your environment ready for parallel computing to work with MPI in C++.

Here are the steps:

1) First download and install Microsoft HPC pack 2008 SDK from Here and install it.

Now we have our box ready for MPI development, Now will create a solution and apply HPC settings to the solution.

2) Now Open a new Visual C++ project, give the solution name and Click OK.OpenApplication 3) In Application settings dialogue select empty project and click finish.

EmptyProject

Now we have to make three settings changes to let our project use the features in HPC pack:

4) Click on Project Properties: this will popup a property window:

PropertyMPI4) Under Configuration Properties Tab, Click on VC++ Directories Tab and change 2 settings.

      • For “Include Directories” browse to HPC installed directories and add its “Include” directories. Default would be: C:\Program Files\Microsoft HPC Pack 2008 SDK\Include

Include Directories

  • For Linked Directories add HPC Pack’s i386 Folder. Default would be:

 

C:\Program Files\Microsoft HPC Pack 2008 SDK\Lib\i386

LinkedDIr

  • Now, Under Linker tab’s Additional Dependencies, add msmpi.lib.

LinkerTab

OK, Now we have our Settings. We should now be able to compile our MPI application. You can test it by writing a simple MPI application. I might add a simple application to test MPI configured later.

Cheers!!

Advertisements