Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28914 Discussions

Setting up vs2020/ifx 2024 for MPI codes.

cuesta303
Beginner
1,440 Views

Previously visual studio ~2015, with Intel MPI library 2018 update 3 and Intel Parallel XE 2015 update 1 to run a *.sln with 16 projects all F95. Two of these used MPI and compose >1000 routines.  I have moved to vs2022 and the ifx/ifort 2024 packages with the oneAPI background. I found some comments on how to link and run these MPI codes but they did not seem to correlate with the directory structure I was provided. The PATH and ENV variables didn't set up. So I went searching for mpi.mod, impi.lib to link and impi.dll to run and did this manually. I ended up with :

 

Fortran>Additional Include Libraries : C:\Program Files (x86)\Intel\oneAPI\mpi\2021.11\include\mpi

Linker>Additional Include Libraries : C:\Program Files (x86)\Intel\oneAPI\mpi\2021.11\lib\

Linker>Additional Dependencies : impi.lib

 

and two PATH additions to locate the debug and release versions of impi.dll, eg C:\Program Files (x86)\Intel\oneAPI\mpi\2021.11\bin for the release version.

 

These work fine. But I am concerned that I appear to be using the ifx compiler to generate the exes but I am using the mpi.mod and impi.lib files from the ifort release that is going to removed at some point. Is this correct ? or is there a way to link the mpi.mod and impi.lib .syslink versions of these files that are sitting in the ifx 2024 dirs that I'm unaware of ?

 

 

 

 

Labels (1)
0 Kudos
1 Solution
Barbara_P_Intel
Employee
1,367 Views

I suggest you explain your issue on the HPC Toolkit Forum. They work with MPI.

 

View solution in original post

0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
1,421 Views

It is (should be) always OK to use newer run-time libraries with older compilers. Also, ifort and ifx use the same run-time libraries and module formats.

0 Kudos
Barbara_P_Intel
Employee
1,368 Views

I suggest you explain your issue on the HPC Toolkit Forum. They work with MPI.

 

0 Kudos
Reply