Skip to content

Conversation

@chunhuanMeng
Copy link
Contributor

The main change is a revision of the math-related compiler flags to better control floating-point behavior.

Build flag changes for GNU compiler:

  • Removed several flags (-fhonor-nans, -fhonor-infinities, -fno-associative-math, -fno-approx-func) and replaced them with -fno-fast-math and -fma in the SYCL_KERNEL_OPTIONS to adjust floating-point operation handling and enable fused multiply-add instructions.

Copilot AI review requested due to automatic review settings December 5, 2025 05:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes math-related compiler flags for GNU compiler builds by simplifying floating-point behavior control. The change replaces four specific floating-point flags with two more comprehensive options.

Key Changes:

  • Consolidated multiple floating-point flags into -fno-fast-math and -fma for simpler and more predictable floating-point behavior
  • Maintained strict floating-point semantics while enabling fused multiply-add optimizations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants