Skip to content

cleanup of FPE#338

Open
rrsettgast wants to merge 10 commits into
developfrom
cleanup/macosFPE
Open

cleanup of FPE#338
rrsettgast wants to merge 10 commits into
developfrom
cleanup/macosFPE

Conversation

@rrsettgast
Copy link
Copy Markdown
Contributor

This PR seeks to cleanup our treatment of FPE and underflow flushing. Goals:

  • cleanup platform branching logic
  • ensure testing is working on all platforms
  • ensure underflow flush to zero is properly enabled

@wrtobin
Copy link
Copy Markdown
Contributor

wrtobin commented Dec 5, 2024

rocmcc supports the cuda flag:
-fcuda-flush-denormals-to-zero

https://rocm.docs.amd.com/en/docs-6.0.2/reference/rocmcc.html

@wrtobin wrtobin closed this Dec 5, 2024
@wrtobin wrtobin reopened this Dec 5, 2024
@wrtobin
Copy link
Copy Markdown
Contributor

wrtobin commented Dec 5, 2024

misclick

@rrsettgast rrsettgast changed the title cleanup of FPE on macOS cleanup of FPE Dec 11, 2025
rrsettgast and others added 8 commits February 4, 2026 14:39
Expose system::queryEnabledFloatingPointExceptions() so callers can
verify which FE_* exceptions are actually trap-enabled after changing the
floating-point environment. Implement platform-specific handling for
glibc, Apple arm64 FPCR, and Apple x86 fenv control words, allowing
trapless FPUs to be detected when enable calls appear to succeed.

Extend FPE tests to cover the query helper and disable optimization for
FPE helper operations across all builds.
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.

3 participants