Skip to content

Make speculation safe for Intel compiler with floating point exceptions #515

@theurich

Description

@theurich

Under #502 @climbfuji points us to

https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2024-2/fp-speculation-qfp-speculation.html#GUID-5F6A2F05-0436-41B8-8ACE-49049135F06D

Setting compiler option -fp-speculation=safe on our Intel configurations for ESMF_BOPT=O seems the way to go to prevent issues with speculative floating point code that can lead to floating point exceptions. This would be the safe way to prevent the issues reported when user code builds with -fpe0.

I would think that for most of the ESMF code potential performance impact is minimal. Only maybe some portions of the weight generation part might have measurable performance impact with -fp-speculation=safe over the default fast option for optimized compilation?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions