Skip to content

Conversation

@jinge90
Copy link
Contributor

@jinge90 jinge90 commented Oct 22, 2025

Triton XPU backend developer reports imf function fdiv_rn returns incorrect result for corner case fdiv_rn(1.0f, 0.0f). The expected should be inf instead of nan. This PR fixes this issue.

@jinge90 jinge90 requested a review from a team as a code owner October 22, 2025 07:30
@jinge90 jinge90 requested a review from cperkinsintel October 22, 2025 07:30
jinge90 referenced this pull request Oct 22, 2025
…rted in kernel code (#11704)

This PR adds:
fdiv_rd, fdiv_rn, fdiv_ru, fdiv_rz, ddiv_rd, ddiv_rn, ddiv_ru, ddiv_rz
into imf libdevice which implements fp32/64 division with rounding mode
supported in sycl kernel code.

Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM!

@steffenlarsen steffenlarsen merged commit b93bc43 into intel:sycl Oct 23, 2025
29 checks passed
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