MetOffice / MetOffice/lfric_apps
`lfric_atm` crashes when compiling with Genoa craylibs
- Dominant language
- Fortran
- Stars
- 31
- Forks
- 118
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 8
Description
### Version
main
### Are there any linked Issues or Pull Requests?
#621
### What happened?
Internal compiler error when trying to compile `lfric_atm` using `craype-x86-genoa` and `mo-craylibs-genoa/1.0` at optimisation level "production". This can be avoided by changing the compiler flags for the `melt_ctl` to use `-O0`.
### Relevant log output
```shell
ftn-7991 ftn: INTERNAL MELT_CTL, File = convection/comorph/moist_proc/melt_ctl.F90, Line = 280
INTERNAL COMPILER ERROR: "arithmetic or typeless types expected" (/home/jenkins/crayftn/pdgcs/v_expr_utl.c, line 9095,
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with convection/comorph/moist_proc/melt_ctl.F90 around line 280 and reproduce the production build using craype-x86-genoa with mo-craylibs-genoa/1.0. Compare the failing optimization settings with the reported -O0 workaround, and review linked issue #621 for context. Done should mean lfric_atm compiles without the reported internal compiler error under the intended production settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fortran
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100