Skip to content

BUG: Default optimisation level for GCC 15+ is -O2 not -O3 #5107

@connorjward

Description

@connorjward

In #5105 we set the default optimisation flag for GCC 15+ to be -O2. This is to fix numerical issues (i.e. NaNs and similar garbage) that occur when executing tricky interpolation kernels under -O3.

An example of a failing test is tests/firedrake/output/test_io_function.py::test_io_function_base.

Currently this workaround applies to all versions of GCC >= 15, when newer GCCs are released we should revisit this and see if we can set a maximum version constraint for this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions