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
- Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022
Adilson Junior, modified 2 Years 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