RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022 - Forum - Delft3D Flexible Mesh
Forum
- Home
- 2. Questions and troubleshooting
- 2.1 Questions about the software
- 2.1.1 Compiling the code
- RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Adilson Junior, modified 10 Months ago.
Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Youngling Post: 1 Join Date: 7/6/22 Recent Posts
Hello!
I was able to build Delft3D FM (141208) with no problem in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
{root}/build.bat:
Lines 195 to 200:
Lines 312 and 313:
Lines 357 to 359:
For other projects and Delft3D FM I have the following VS 2022 workloads installed:
Downloaded and installed Intel:
Fortran Compiler
MPI
MKL
ENVs:
I_MPI_ONEAPI_ROOT = C:\Program Files (x86)\Intel\oneAPI\mpi\2021.7.1
IFORT_COMPILER22 = C:\Program Files (x86)\Intel\oneAPI\compiler\2022.2.1\windows\
ONEAPI_ROOT = C:\Program Files (x86)\Intel\oneAPI\
VS2022INSTALLDIR = C:\Program Files\Microsoft Visual Studio\2022\Community
{root}/build.bat all was enough
When I try oneAPI 2023, it seems that it tries to copy files from a folder {root}/src/third_party_open/intelredist/ and doesn't copy important libs like impi.dll
I was able to build Delft3D FM (141208) with no problem in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
{root}/build.bat:
Lines 195 to 200:
1 | if NOT "%VS2022INSTALLDIR%" == "" ( |
2 | set vs=2022 |
3 | echo Found: VisualStudio 17 2022 |
4 | if NOT "%IFORT_COMPILER22%" == "" ( |
5 | set ifort=22 |
6 | echo Found: Intel Fortran 2022 |
Lines 312 and 313:
1 | if "!vs!" == "2022" ( |
2 | set generator="Visual Studio 17 2022" |
Lines 357 to 359:
1 | if !generator! == "Visual Studio 17 2022" ( |
2 | echo "Calling vcvarsall.bat for VisualStudio 2022 ..." |
3 | call "%VS2022INSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" amd64 |
For other projects and Delft3D FM I have the following VS 2022 workloads installed:
1 | Microsoft.VisualStudio.Workload.CoreEditor |
2 | Microsoft.VisualStudio.Workload.NativeDesktop |
3 | Microsoft.VisualStudio.Component.VC.Tools.x86.x64 |
4 | Microsoft.VisualStudio.Component.VC.DiagnosticTools |
5 | Microsoft.VisualStudio.Component.Windows11SDK.22621 |
6 | Microsoft.VisualStudio.Component.VC.CMake.Project |
7 | Microsoft.VisualStudio.Component.VC.ATL |
8 | Microsoft.VisualStudio.Component.VC.ATLMFC |
9 | Microsoft.VisualStudio.Component.VC.CLI.Support |
10 | Microsoft.Component.VC.Runtime.UCRTSDK |
Downloaded and installed Intel:
Fortran Compiler
MPI
MKL
ENVs:
I_MPI_ONEAPI_ROOT = C:\Program Files (x86)\Intel\oneAPI\mpi\2021.7.1
IFORT_COMPILER22 = C:\Program Files (x86)\Intel\oneAPI\compiler\2022.2.1\windows\
ONEAPI_ROOT = C:\Program Files (x86)\Intel\oneAPI\
VS2022INSTALLDIR = C:\Program Files\Microsoft Visual Studio\2022\Community
{root}/build.bat all was enough
When I try oneAPI 2023, it seems that it tries to copy files from a folder {root}/src/third_party_open/intelredist/ and doesn't copy important libs like impi.dll
Alejandro Fernández-Concha, modified 3 Months ago.
RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Youngling Post: 1 Join Date: 7/25/23 Recent Posts
How did you manage to get access to the previous versions of the Intel libraries?
Do you remember if the Intel MPI Library went throuh the integration process with MSVS?
Do you remember if the Intel MPI Library went throuh the integration process with MSVS?
Marcel van Rooij, modified 2 Months ago.
RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Youngling Post: 1 Join Date: 9/13/23 Recent Posts
Hello Adilson Junior,
Thank you for sharing the above information. I am trying to compile Delft3D, but keep running in to some errors during the compiling process. After modifying the build.bat I get the notification that the specified compiler is not installed. However, all ENVs are on the right spot as well as the VS 2022 workloads. I am using your links for Intel compiler, so I don’t know where this error is coming from. Have any insights? It seems more people run in to issues lately with the compiling of Delft3D, so I really hope you might know more.
Kind regards,
Marcel
Thank you for sharing the above information. I am trying to compile Delft3D, but keep running in to some errors during the compiling process. After modifying the build.bat I get the notification that the specified compiler is not installed. However, all ENVs are on the right spot as well as the VS 2022 workloads. I am using your links for Intel compiler, so I don’t know where this error is coming from. Have any insights? It seems more people run in to issues lately with the compiling of Delft3D, so I really hope you might know more.
Kind regards,
Marcel
Pércoles Tiago Napivoski, modified 1 Month ago.
RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Youngling Posts: 2 Join Date: 10/26/23 Recent Posts
It was possible to access old versions of https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html through https://archive.org/
Intel MPI was correctly installed after MS Visual Studio 2022 and Intel Fortran Compiler
For the compiler to be identified one must change all the refered lines in {root}/build.bat
Intel MPI was correctly installed after MS Visual Studio 2022 and Intel Fortran Compiler
For the compiler to be identified one must change all the refered lines in {root}/build.bat
Ali Reza Payandeh, modified 1 Month ago.
RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Youngling Post: 1 Join Date: 10/16/23 Recent Posts
Is there any update on this? I am using VS 2019 and OneAPI 2023 since the older versions of One API are not availble. I am working to compile the trunk version and vesion 142586. On both versions, after compiling I get the following errors:
LNK1104 cannot open file 'ifconsol.lib' kubint (tools_gpl\kubint\kubint)
LNK1104 cannot open file 'ifconsol.lib' lint (tools_gpl\lint\lint)
LNK1104 cannot open file 'ifconsol.lib' datsel (tools_gpl\datsel\datsel)
I managed tp fix the above issues with changing IFORT_COMPILER22 to IFORT_COMPILER23 in kubint, lint, and datsel .vcxproj files. But the I get the follwing error:
fatal error LNK1181: cannot open input file 'x64\Release\typeSizes.obj'
Has anyone solved this issue? How we are supposed to fix this issue when older version of OpeAPI is not availbe. Has anyone managed to compile with OpneAPI 2023?
Thanks
LNK1104 cannot open file 'ifconsol.lib' kubint (tools_gpl\kubint\kubint)
LNK1104 cannot open file 'ifconsol.lib' lint (tools_gpl\lint\lint)
LNK1104 cannot open file 'ifconsol.lib' datsel (tools_gpl\datsel\datsel)
I managed tp fix the above issues with changing IFORT_COMPILER22 to IFORT_COMPILER23 in kubint, lint, and datsel .vcxproj files. But the I get the follwing error:
fatal error LNK1181: cannot open input file 'x64\Release\typeSizes.obj'
Has anyone solved this issue? How we are supposed to fix this issue when older version of OpeAPI is not availbe. Has anyone managed to compile with OpneAPI 2023?
Thanks
Pércoles Tiago Napivoski, modified 1 Month ago.
RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Youngling Posts: 2 Join Date: 10/26/23 Recent Posts
Check first post for older versions of Intel oneAPI 2022. You can see that the links are hosted in Intel subdomain registrationcenter-download.intel.com
Will Saldana, modified 26 Days ago.
RE: Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Youngling Post: 1 Join Date: 9/15/23 Recent Posts
A lot of the blogs I see these days don't really have anything I'm interested in, but this one definitely does io games