-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FTN compiled stucks at move_alloc #399
Comments
Could this be an alternative: |
Hi Patrick, indeed I changed the code in the similar manner as you suggested. The problem persists and it turns out that I traced it incorrectly. Everything happens two line above: fesom2/src/io_netcdf_file_module.F90 Line 82 in a9f45df
The code crashes with an error: [EC_DRHOOK:nid001013:28:1:178507:178507] [20221220:205540:1671562540:8.780] [signal_drhook@ifsaux/support/drhook.c:1988] : [07]: F90_COPY_POLYMORPHIC /opt/cray/pe/cce/14.0.2/cce/x86_64/lib/libf.so.1 0x151e336e9000 0x151e33709e9e # addr2line Cray Compiling Environment (CCE) raises error in _F90_COPY_POLYMORPHIC Some treatment is required here! |
This seems to be related to the fact that the dim_type and var_type contain allocatable types. From a comment in the code, this has apparently been an issue before (albeit with the nvfortran compiler @hegish ) when copying an array where nvfortran lost allocation of those derived types. This dirty fix with a fixed character length works for me on LUMI, but we should find something better:
Note that doing this only for the dim_type let's the model fail with another F90_COPY_POLYMORPHIC issue: [EC_DRHOOK:nid001314:2:1:169921:169921] [20221221:011331:1671578011:8.043] [signal_drhook@ifsaux/support/drhook.c:1988] : [07]: F90_COPY_POLYMORPHIC /opt/cray/pe/cce/14.0.2/cce/x86_64/lib/libf.so.1 0x148603f13000 0x148603f33e9e # addr2line |
Well spotted Thomas! Thanks! I think that limiting the name by 100 shall be sufficient :) |
using a fixed length name will break a lot of thinks, e.g. one would have to use trim everywhere. |
Things are running on lumi, can be closed? |
fesom2/src/io_netcdf_file_module.F90
Line 84 in a9f45df
@hegish @koldunovn @patrickscholz the ftn 2.7.17 at lumi cannot handle move_alloc. A workaround required urgently!
The text was updated successfully, but these errors were encountered: