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

Identify FTZ-causing library #3472

Merged
merged 2 commits into from Oct 5, 2022
Merged

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Oct 2, 2022

Closes #3458 the complete overkill way, because once I got started each incremental part wasn't that hard to add... and if you're trying to understand what's going on here I'd like to help as much as possible.

cc @catherio FYI.

@Zac-HD Zac-HD added the legibility make errors helpful and Hypothesis grokable label Oct 2, 2022
Copy link
Member

@honno honno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. The base problem of identifying a culprit seemed annoying-enough, and this goes above and beyond.

Manual test worked locally. I didn't practically explore other scenarios like FTZ Python builds because... yaknow.

As an aside, I'm totally ignorant of multi-processing things so was wondering if there's a noob-friendly way to use breakpoints for the "original thread" code? The ever reliable print() served my exploratory needs in any case. Seems breakpoint() works fine, was using ipdb which is doing something funky.

hypothesis-python/src/_hypothesis_ftz_detector.py Outdated Show resolved Hide resolved
@Zac-HD Zac-HD merged commit db07696 into HypothesisWorks:master Oct 5, 2022
@Zac-HD Zac-HD deleted the better-ftz-error branch October 5, 2022 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legibility make errors helpful and Hypothesis grokable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Point to culprit library in error message for subnormals-are-zero
2 participants