Configuring a Visual Studio* Project

To configure a Visual Studio* project with IntelĀ® MPI Library, do the following:

  1. In Microsoft* Visual Studio*, create a console application project, or open an existing one.

  2. Open the project properties and go to Configuration Properties > Debugging. Set the following parameters:

    Command: $(I_MPI_ROOT)\intel64\bin\mpiexec.exe
    Command arguments: -n <processes_number> "$(TargetPath)"

  3. In Configuration Properties > C/C++ or Fortran, as appropriate, set the following parameter:

    Additional Include Directories: $(I_MPI_ROOT)\intel64\include

  4. In Configuration Properties > Linker, set the following parameter:

    Additional Library Directories: $(I_MPI_ROOT)\intel64\lib\<configuration>

    You can set the following values for <configuration>:

  5. In Configuration Properties > Linker > Input, set the following parameter:

    Additional Dependencies: impi.lib

After completing these steps, you can build the solution and run the application. To run the application from Visual Studio*, you can use the Ctrl + F5 key combination (Start Without Debugging). For other options of running MPI applications, see Running Applications.