-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
@simd
enables unexpected fastmath optimizations
#49387
Labels
maths
Mathematical functions
Comments
I don't think " Lines 67 to 131 in c6ed7d7
Line 126 in c6ed7d7
|
mikmoore
changed the title
Apr 18, 2023
@simd
invokes @fastmath
@simd
enables unexpected fastmath optimizations
There is an argument to only enable |
vtjnash
pushed a commit
that referenced
this issue
Jun 28, 2023
Addresses #49387 Co-authored-by: Mosè Giordano <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@simd
results in@fastmath
being applied. This is undocumented behavior (except for re-association of reduction variables). The behavior needs to be documented or the@fastmath
needs to not occur.Reduced example derived from an effort to write a faster
norm(x, 2)
:Inspecting the
@code_llvm
shows many@fastmath
operations and the@code_native
shows unauthorizedfma
instructions. The result should bes == s1 == 14.0
, but instead we gets == s2 == Inf
because thes2==Inf
check is replaced byfalse
by the "noinf" property inherited from@fastmath
.The text was updated successfully, but these errors were encountered: