Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zaikunzhang opened this issue Apr 7, 2024 · 0 comments

Comments

@zaikunzhang
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant