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

bruteforce: Fixes comparisons with zero and reference math #2021

Closed
wants to merge 1 commit into from

Conversation

lakshmih
Copy link
Contributor

  • test is an unsigned short, convert using HTF before comparison with 0.0f
  • OpenCL s7.5.3 sign of zero is undefined when FTZ happens so modify to cover +0 and -0
  • use f_fma for reference math

- test is an unsigned short, convert using HTF before comparison with 0.0f
- OpenCL s7.5.3 sign of zero is undefined when FTZ happens so modify to cover +0 and -0
- use f_fma for reference math
overflow[j] =
FE_OVERFLOW == (FE_OVERFLOW & fetestexcept(FE_OVERFLOW));
}
}
else
{
for (size_t j = 0; j < bufferElements; j++)
res[j] = HFD((double)f->dfunc.f_fff(HTF(hp0[j]), HTF(hp1[j]),
Copy link
Member

Choose a reason for hiding this comment

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

There is another call to dfunc.f_fff on line 280; should that also be changed?

@lakshmih lakshmih closed this Sep 25, 2024
@lakshmih lakshmih deleted the bruteforce_half_fixes branch September 25, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants