Configuring a Visual Studio* Project
To configure a Visual Studio* project with Intel® MPI Library, do the following:
- In Visual Studio, create a console application project, or open an existing one.
- Open the project properties, go toConfiguration Properties > Debuggingand set the following parameters:Command:$(I_MPI_ONEAPI_ROOT)\bin\mpiexec.exeCommand arguments:-n <processes-number> "$(TargetPath)"Environment:PATH=$(I_MPI_ONEAPI_ROOT)\bin\$(ConfigurationName);$(I_MPI_ONEAPI_ROOT)\libfabric\bin;$(PATH)
- InConfiguration Properties > C/C++orFortran, as appropriate, set the following parameter:Additional Include Directories:$(I_MPI_ONEAPI_ROOT)\include
- InConfiguration Properties > Linker, set the following parameter:Additional Library Directories:$(I_MPI_ONEAPI_ROOT)\lib\$(ConfigurationName);$(I_MPI_ONEAPI_ROOT)\lib
- InConfiguration Properties > Linker > Input, set the following parameters:
- For Fortran, set Additional Dependencies:impi.lib
- For C++, set Additional Dependencies:impi.libandimpicxx.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 available options, see
Running Applications.