Forum

RE: Compiling with Intel oneAPI?

Mike Foster, modified 1 Year ago.

Compiling with Intel oneAPI?

Youngling Posts: 4 Join Date: 9/22/21 Recent Posts
I am running into compiling issues, likely because the only Intel fortran compiler I have is the new oneAPI version, and that is not one of the options when launching the "prepare_sln.py" file. Does anyone know a way to successfully compile with oneAPI, or alternatively, get access to an older version of Intel Parallel Studio XE? Intel seems to have made them obsolete.

Thank you.
Ekaterina Zhdanova, modified 1 Year ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 3 Join Date: 9/21/21 Recent Posts
For Intel oneAPI compiler try to use newer versions of source code, for example: https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/69179/
Mike Foster, modified 1 Year ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 4 Join Date: 9/22/21 Recent Posts
Worked like a charm, thank you. I must have used the version from the download instructions which is a bit older.
Maggie Zhang, modified 1 Year ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 4/12/22 Recent Posts
Hi! I met the same problem, did you solve the problem? About Compiling with the latest version of oneAPI. Could you give me some suggestions, please. Thank you.
Charles Murman, modified 1 Year ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 4 Join Date: 6/13/22 Recent Posts
I am also having the same issue.  The current version of oneAPI available is 2022 but Delft3D Tag 69179 is looking for oneAPI 2021 or older.  How do I update the scripts to look for the current version of oneAPI?
Paterno Miranda IV, modified 11 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 8/4/22 Recent Posts
Any update on this? I am experiencing the same problem.
Hajna Tijssen, modified 11 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 9/22/22 Recent Posts
Would also love to hear an update on this!
Luther Terblanche, modified 10 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 11/16/22 Recent Posts
I am also using the latest OneAPI2022 and I have issues. I have replaced all the IFORT_COMPILER21re ferences  with IFORT_COMPILER2022 in the project files. But I get the following error

 error #6439: This symbol has too many characters.   [OMPX_TARGET_ALIGNED_ALLOC_DEVICE]        C:\PROGRA~2\Intel\oneAPI\compiler\20222~1.1\windows\bin\Intel64\..\..\compiler\include\omp_lib.h    895    

This seems to be related to one of the OneAPI files, not Delft3D files. Any ideas on this? Can it be fixed with a compiler options?

​​​​​​​Regards
Muhammad Rushdi, modified 6 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 4 Join Date: 2/23/23 Recent Posts
Update the repository with the latest version:&nbsp;<a href="https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/142586">https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/142586</a><br />It fixes the errors you mentioned after the IFORT_COMPILER22 is adjusted to the script as suggested in the FAQ.&nbsp;<br />However, I got other errors as the following:<br /><br />Error&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;fatal error LNK1181: cannot open input file 'x64\Release\typeSizes.obj'&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LINK&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br />Error&nbsp;&nbsp; &nbsp;LNK1181&nbsp;&nbsp; &nbsp;cannot open input file '..\..\..\..\third_party_open\netcdf\x64\Release\netcdff.lib'&nbsp;&nbsp; &nbsp;flow2d3d (engines_gpl\flow2d3d\flow2d3d)&nbsp; &nbsp; &nbsp;&nbsp;<br /><br />Wondering if someone has these too and find the way to work around it. Please.
Muhammad Rushdi, modified 6 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 4 Join Date: 2/23/23 Recent Posts
Ok. So I updated again the repository with the trunk. As instructed, I have adjusted the IFORT_COMPILER in the .vcxproj.
But, I get the following errors:

Error    LNK2001    unresolved external symbol SECONDS_SINCE_REFDAT    flow2d3d (engines_gpl\flow2d3d\flow2d3d)  
Error    LNK2001    unresolved external symbol DATETIME_FROM_REFDAT    flow2d3d (engines_gpl\flow2d3d\flow2d3d)    
Error    LNK1120    2 unresolved externals    flow2d3d (engines_gpl\flow2d3d\flow2d3d)  

Any lead is much appreciated.
Anton Burman, modified 5 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 2 Join Date: 4/21/23 Recent Posts
I am also getting these errors with oneAPI 2023, did you ever find a workaround?
Luther Terblanche, modified 5 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 2 Join Date: 6/5/12 Recent Posts
Any luck with this so far. I also get this error at the moment.

​​​​​​​Cheers

Muhammad Rushdi
Ok. So I updated again the repository with the trunk. As instructed, I have adjusted the IFORT_COMPILER in the .vcxproj.
But, I get the following errors:

Error    LNK2001    unresolved external symbol SECONDS_SINCE_REFDAT    flow2d3d (engines_gpl\flow2d3d\flow2d3d)  
Error    LNK2001    unresolved external symbol DATETIME_FROM_REFDAT    flow2d3d (engines_gpl\flow2d3d\flow2d3d)    
Error    LNK1120    2 unresolved externals    flow2d3d (engines_gpl\flow2d3d\flow2d3d)  

Any lead is much appreciated.
Muhammad Rushdi, modified 5 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 4 Join Date: 2/23/23 Recent Posts
What I did was adding the SECONDS_SINCE_REFDAT.f90 and DATETIME_FROM_REFDAT.f90 functions to the deltares_common package.
These are the steps (from what I remember):

1. Open deltares_common.vfproj in ...\src\utils_lgpl\deltares_common\packages\deltares_common directory
2. Include the requested functions by adding following lines to the list:         
1
        <File RelativePath="src\datetime_from_refdat.f90"/>
2
        <File RelativePath="src\seconds_since_refdat.f90"/>
3. Rebuild the project.

If  I remember it correctly, after you rebuild, it will request for another functions to be included. The steps will be the same.

Hope this helps!
Cheers,
Rushdi
Luther Terblanche, modified 5 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 2 Join Date: 6/5/12 Recent Posts
Thanks. It worked. I just added the files to the project through the MSVS GUI .
Anton Burman, modified 4 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 2 Join Date: 4/21/23 Recent Posts
Thank you Rushdi, finally it worked. The other two files that I had to add were "julday.f90" and "caldat.f90". If anyone else is running into this problem, try checking out the revision that was in Rushdi's first post. The latest revision didn't work for me!
Mohamed Fathi, modified 4 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 4 Join Date: 5/10/23 Recent Posts
Muhammad Rushdi
What I did was adding the SECONDS_SINCE_REFDAT.f90 and DATETIME_FROM_REFDAT.f90 functions to the deltares_common package.
These are the steps (from what I remember):

1. Open deltares_common.vfproj in ...\src\utils_lgpl\deltares_common\packages\deltares_common directory
2. Include the requested functions by adding following lines to the list:         
1
        <File RelativePath="src\datetime_from_refdat.f90"/>
2
        <File RelativePath="src\seconds_since_refdat.f90"/>
3. Rebuild the project.

If  I remember it correctly, after you rebuild, it will request for another functions to be included. The steps will be the same.

Hope this helps!
Cheers,
Rushdi


Alsalam alekom Mohamed, I need some help with compiling Delft3d with intel oneAPI. Could you please email me on engmmostafa4000@gmail.com


​​​​​​​Thanks so much for support!!
Juhi Tilak, modified 9 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 2 Join Date: 12/9/22 Recent Posts
I am getting this error as well. Any solution?
Andrea Lira Loarca, modified 7 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 2 Join Date: 11/8/19 Recent Posts
Has anyone found a solution or maybe has the oneAPI Base Toolkit or HPC Toolkit 2021 for windows? I haven't managed to compile with the oneAPI 2023 versions. 
Matthias Haselbauer, modified 7 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 1/17/23 Recent Posts
1
I have exactly the same problem. Only the latest version for Toolkit 2023 is available on the Intel side. Since the prepare shell is not adapted to ifort2023, I assume that the latest version is not compatible with the compiling script.
2

3
Has anybody compiled the code with ifort2023 recently sucessfully?
4

5
Regards
6

7
Matthias
8
​​​​​​​
Camilo N&uacute;&ntilde;ez, modified 2 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 5 Join Date: 3/26/23 Recent Posts
did you get any solution?
Adrian Mikhail Garcia, modified 3 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 2/24/23 Recent Posts
I have not been able to compile successfully with Intel oneAPI 2023, but I did manage to track down download links for Intel oneAPI 2021 (Base Kit and HPC Kit) on the Intel community forum (see below). I'm working now on reinstalling and trying to compile again with ifort2021.

 community.intel.com/t5/oneAPI-Registration-Download/Where-can-I-find-older-versions-2021-2-of-Intel-OneAPI-Base-and/m-p/1299671#M1135
Fickry Argeta, modified 2 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 6/23/23 Recent Posts
have you installed it? i cant installed it always show nothing after extracting while i use hpc 2023 it showed next step to install...
Camilo N&uacute;&ntilde;ez, modified 2 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 5 Join Date: 3/26/23 Recent Posts
Its works?
Lisanne Braat, modified 6 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 4/10/20 Recent Posts
I would also appreciate support for the 2023 toolkits, since it is not possible to download older versions.
Chloe Leach, modified 4 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 3 Join Date: 12/1/21 Recent Posts
Having the same issues - tracking replies to this post!
Matias Figueroa, modified 1 Month ago.

RE: Compiling with Intel oneAPI?

Youngling Post: 1 Join Date: 8/17/23 Recent Posts
Hello, I have the same problem, The installation does not work with the most recent version of intel (Intel oneapi 2023).
Does anyone know how to get intel oneapi 2021?
Alejandro Fern&aacute;ndez-Concha, modified 23 Days ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 5 Join Date: 7/25/23 Recent Posts
In this thread the installers for ifort22, mkl22 and mpi21 are available

Building in Windows 10 with Visual Studio 2022 and Intel oneAPI 2022 - Forum - Delft3D Flexible Mesh - oss.deltares.nl

However I still haven't managed to get a compilation without errors.

Some examples can run however, although I needed to modify the run.bat file for that.

I will make a post about it and attach it.