To use MS-MPI in Windows 7/8 with Visual Studio 2012, one must download and install the HPC Pack 2012 Client Utilities and MS-MPI Redistributable Packages, create a C++ project in Visual Studio with a "hello.cpp" file containing sample MPI code, configure the project properties, and then run the code using mpiexec to launch multiple processes of the program.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100%(1)100% found this document useful (1 vote)
686 views
Using Ms Mpi
To use MS-MPI in Windows 7/8 with Visual Studio 2012, one must download and install the HPC Pack 2012 Client Utilities and MS-MPI Redistributable Packages, create a C++ project in Visual Studio with a "hello.cpp" file containing sample MPI code, configure the project properties, and then run the code using mpiexec to launch multiple processes of the program.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3
Using MS-MPI in Windows 7/8 with VS 2012
1. Download HPC Pack 2012 Client Utilities Redistributable Package from
http://www.microsoft.com/en-us/download/confirmation.aspx?id=36044 and install it 2. Download HPC Pack 2012 MS-MPI Redistributable Package from http://www.microsoft.com/en-us/download/confirmation.aspx?id=36045 and install it 3. Open Visual Studio, and create an empty solution project 4. Add hello.cpp to the project with following code
5. Change Project Property as following steps
6. Now, you should be able to run the sample code without any compile or linking error 7. If you try to run the code in multiple processes, you need mpiexec.exe a. Add "C:\Program Files\Microsoft HPC Pack 2012\Bin" to system environment variables b. Use cmd and change to project directory, and type mpiexec n 4 HelloMPI.exe to run HelloMPI.exe with 4 processes c. Following is sample result
Installation, Upgrade, and Configuration of IBM Cognos Analytics: Smooth Onboarding of Data Analytics and Business Intelligence on Red Hat RHEL 8.0, IBM Cloud Private, and Windows Servers
Cross-Platform Modern Apps with VS Code: Combine the power of EF Core, ASP.NET Core and Xamarin.Forms to build multi-platform applications on Visual Studio Code
Visual Studio 2019 In Depth: Discover and make use of the powerful features of the Visual Studio 2019 IDE to develop better and faster mobile, web, and desktop applications (English Edition)