- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I'm using visual studio community 2022 and intel oneapi base and HPC toolkits, latest versions. I followed the intel instructions to configure MPI Fortran, as shown abobe:
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: $(I_MPI_ONEAPI_ROOT)\bin\mpiexec.exe
Command arguments: -n <processes-number> "$(TargetPath)"
Environment: PATH=$(I_MPI_ONEAPI_ROOT)\bin\$(ConfigurationName);$(I_MPI_ONEAPI_ROOT)\libfabric\bin;$(PATH)
NOTE:If you have installed the Microsoft Visual Studio* integration, go to Project > Properties > Intel Libraries for oneAPI > Use Intel MPI Library and set it to Yes. You can skip the steps below.In Configuration Properties > C/C++ or Fortran, as appropriate, set the following parameter:
Additional Include Directories: $(I_MPI_ONEAPI_ROOT)\include
In Configuration Properties > Linker, set the following parameter:
Additional Library Directories: $(I_MPI_ONEAPI_ROOT)\lib\$(ConfigurationName);$(I_MPI_ONEAPI_ROOT)\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
First, I get the the error message:
error #5102 Cannot open include file 'mpif.h'
Second, I don't see an option :
Project > Properties > Intel Libraries for oneAPI > Use Intel MPI Library and set it to Yes
This error is really annoyind and I've been looking for a solution for a long time. I would really appreciate if anyone can help me with this issue.
Thanks in advance,
Fernando Ribeiro
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
@fernando1
It seems you got outdated instructions. Please use the following:
https://www.intel.com/content/www/us/en/docs/mpi-library/developer-guide-windows/2021-12/configuring-a-microsoft-visual-studio-project.html
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Problem solved. Thank you very much !

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite