prima
prima copied to clipboard
The behavior of COBYLA is slightly different when `infnan_mod` is broken and the code is compiled with `-Ofast -fno-stack-arrays`
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.