Open billsacks opened 6 years ago
Could this be done for CESM2.0?
@ekluzek no, this relies on a fix to the gnu compiler which I don't think is in place yet (at least not in the versions of gnu that we typically use).
@billsacks Do we have a working gnu compiler yet? I believe that with the cmake system we can add flags that depend on compiler version.
I haven't tested this recently, but the relevant gcc issue is still open, so my best guess is that it's still an issue with the latest gfortran (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66462).
I'd like to be able to add
invalid
to theffpe-trap
list for gnu. However, this currently causes problems: gfortran's isnan (which is called in cime via the CPRGNU-specific shr_infnan_isnan) causes a floating point exception when called on a signaling NaN. We useisnan
in various places in CESM, so this would presumably cause problems when running in debug mode.This appears to be a known gnu bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66462
Once gnu fixes that bug and we can rely on having versions of gcc/gfortran with that bug fixed, we should add
invalid
to theffpe-trap
list for gnu.(This is a revision of ESMCI/cime#1763 . See that issue for details of things I tried, unsuccessfully, to workaround gnu's current issues.)