Open jakobnissen opened 4 months ago
This is unfortunately a known problem (#38) with the CPython binaries distributed in the cibuildwheel
containers, where some of them were indeed compiled with -ffast-math
for some reason, and the flags were then getting into the default compilation flags reported by sysconfig
and used by default in the setup.py
script...
When loading
pyhmmer
v0.10.12 together with NumPy v1.26.4, the following warning are printed to the screen:From a bit of googling, this is what I found out:
It looks like C libraries compiled with either
-Ofast
or-ffast-math
will cause the C library to set this flag when loaded.Apart from the annoying warning, it is unsafe, and also completely unreasonable that loading one library will globally affect the CPU's behaviour for the whole process, including all other libraries. I narrowed it down to
pyhmmer
0.10.12.This can be solved by compiling pyhmmer without these flags.