[all-commits] [llvm/llvm-project] a6a56a: [libclc] erfc: fix fp32 implementation in FTZ mode...
Romaric Jodin via All-commits
all-commits at lists.llvm.org
Mon Mar 24 09:09:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a6a56a326a3c209e19927942595877aceea368b7
https://github.com/llvm/llvm-project/commit/a6a56a326a3c209e19927942595877aceea368b7
Author: Romaric Jodin <rjodin at chromium.org>
Date: 2025-03-24 (Mon, 24 Mar 2025)
Changed paths:
M libclc/generic/lib/math/erf.cl
M libclc/generic/lib/math/erfc.cl
Log Message:
-----------
[libclc] erfc: fix fp32 implementation in FTZ mode (#132390)
On some implementations, the current implementation leads to slight
accuracy issues.
While the maths behind this implementation is correct, it does not take
into account the accumulation of errors coming from other operators that
do not provide correct rounding (like the exp function).
To avoid it, compute statically exp(-0.5625).
Fixes #124939
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list