- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem solved. Thank you very much !
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page