Visible to Intel only — GUID: GUID-BAE4D0A9-8F6E-403B-ABB6-F82D4699C22D
Visible to Intel only — GUID: GUID-BAE4D0A9-8F6E-403B-ABB6-F82D4699C22D
Configuring a Microsoft Visual Studio* Project
To configure a Microsoft Visual Studio* project with Intel® MPI Library, do the following:
In Microsoft Visual Studio*, create a console application project or open an existing one.
Open the project properties, go to Configuration Properties > Debugging and set the following parameters:
Command: <installation_directory>\bin\mpiexec.exe
Command arguments: -n <processes-number> "$(TargetPath)"
Environment for the Debug version: PATH=<installation_directory>\bin\mpi\debug;<installation_directory>\opt\mpi\libfabric\bin;$(PATH)
Environment for the Release version: PATH=<installation_directory>\bin;<installation_directory>\opt\mpi\libfabric\bin;$(PATH)
NOTE:Starting with Intel(R) MPI 2021.11, the <installation_directory>\bin\mpi\release and <installation_directory>\lib\mpi\release directories are deprecated. Use the corresponding <installation_directory>\bin\mpi\debug and <installation_directory>\lib\mpi\debug directories instead.In Configuration Properties > C/C++ or Fortran, as appropriate, set the following parameter:
Additional Include Directories: <installation_directory>\include
In Configuration Properties > Linker, set the following parameter:
Additional Library Directories for the Debug version: <installation_directory>\lib\mpi\debug;<installation_directory>\lib
Additional Library Directories for the Release version: <installation_directory>\lib
In Configuration Properties > Linker > Input, set the following parameters:
- For Fortran, set Additional Dependencies: impi.lib
- For C++, set Additional Dependencies: impi.lib and impicxx.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.