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

Silence NumPy warning about float subnormals #357

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

jakobnissen
Copy link
Member

The dependency pyhmmer is compiled with -funsafe-math-optimizations. Loading a lib compiled with that flag will set some flags in the CPU for the whole process, which changes float subnormal behaviour.
This is detected when loading NumPy, raising a warning. I believe this is not an issue for Vamb, so I just silence the warning for now. I'm not too happy with this "solution".

The dependency pyhmmer is compiled with -funsafe-math-optimizations. Loading a
lib compiled with that flag will set some flags in the CPU for the whole
process, which changes float subnormal behaviour.
This is detected when loading NumPy, raising a warning.
I believe this is not an issue for Vamb, so I just silence the warning for now.
I'm not too happy with this "solution".
@jakobnissen jakobnissen merged commit bb2388d into master Sep 4, 2024
6 checks passed
@jakobnissen jakobnissen deleted the silence_warn branch September 4, 2024 08:35
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

Successfully merging this pull request may close these issues.

1 participant