GEOS-ESM / ESMA_cmake

Custom CMake macros for the GEOS Earth System Model
Apache License 2.0
4 stars 9 forks source link

Workaround GCC + Open MPI 5 bug #365

Closed mathomp4 closed 6 months ago

mathomp4 commented 7 months ago

This is an ugly hack to work around a bug between GCC and Open MPI 5. Tests determined that on discover (at least) running GEOSgcm with -ffpe-trap=zero caused a crash on MPI_Init. This was reported to Open MPI in https://github.com/open-mpi/ompi/issues/12400

For now, the workaround is if GCC 13 + Open MPI 5.

The other problem is it's discover specific, which isn't great.

I'm going to keep this in draft for now so I don't lose it, but hopefully the ompi folks can help me out.