ACCESS-NRI / ACCESS-OM3

ACCESS-OM3 repository for spack configuration information
Apache License 2.0
0 stars 0 forks source link

ESMF needs `-fp-model=precise` #9

Open anton-seaice opened 1 week ago

anton-seaice commented 1 week ago

Per https://github.com/COSIMA/access-om3/issues/40#issuecomment-1641123313 the ESMF dependency needs to be built with -fp-model=precise to ensure BFB reproducibility.

In the COSIMA spack we had ESMF+debug set, which may have included this flag.

We don't want to always build with debug and +debug has been removed in the config under test. We need to set -fp-model=precise separately for production build. Is this only an option for intel-compilers?

I think we need to update the ESMF package definition to include the fp-model=precise flag?

I am not totally on top of the details, we might need @micaeljtoliveira 's input to be sure of the details.

Ping @CodeGat

CodeGat commented 1 week ago

This might also need @harshula s eyes. Will look into it.