Forum

RE: Compiling with Intel oneAPI?

MF
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.
EZ
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/
MF
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.
MZ
Maggie Zhang, modified 11 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 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.
CM
Charles Murman, modified 9 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 3 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?
PM
Paterno Miranda IV, modified 7 Months ago.

RE: Compiling with Intel oneAPI?

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

RE: Compiling with Intel oneAPI?

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

RE: Compiling with Intel oneAPI?

Youngling Posts: 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
MR
Muhammad Rushdi, modified 2 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 3 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.
MR
Muhammad Rushdi, modified 2 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 3 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.
AB
Anton Burman, modified 1 Month 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?
LT
Luther Terblanche, modified 1 Month 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.
MR
Muhammad Rushdi, modified 1 Month ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 3 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:         
        <File RelativePath="src\datetime_from_refdat.f90"/>
        <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
LT
Luther Terblanche, modified 1 Month 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 .
AB
Anton Burman, modified 22 Days 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!
MF
Mohamed Fathi, modified 18 Days ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 3 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:         
        <File RelativePath="src\datetime_from_refdat.f90"/>
        <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!!
JT
Juhi Tilak, modified 5 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?
AL
Andrea Lira Loarca, modified 3 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. 
MH
Matthias Haselbauer, modified 3 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 1 Join Date: 1/17/23 Recent Posts
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.

Has anybody compiled the code with ifort2023 recently sucessfully?

Regards

Matthias
​​​​​​​
Lisanne Braat, modified 2 Months ago.

RE: Compiling with Intel oneAPI?

Youngling Posts: 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.
CL
Chloe Leach, modified 10 Days 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!