Skip to content

The behavior of COBYLA is slightly different when infnan_mod is broken and the code is compiled with -Ofast -fno-stack-arrays #187

Open

Description

@zaikunzhang

According to https://github.com/primalib/prima/actions/workflows/profile_infnan.yml , when the code is compiled -Ofast -fno-stack-arrays, the behavior of COBYLA is slightly different when infnan_mod is broken, meaning that is_nan always returns .false., is_inf always returns .false., and is_finite always returns .true..

This is not necessarily a bug, as the solvers depend on these functions.

What is interesting is that no visible difference is observed on the other solvers, or when COBYLA is compiled with -ffast-math.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions