You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LLVM 9 provides built-ins for atomic floating-point operations (see http://releases.llvm.org/9.0.0/docs/ReleaseNotes.html). Julia should use these in Base/atomics.jl, as they are likely faster than the current implementation using atomic_cas!.
The text was updated successfully, but these errors were encountered:
I think we currently lower all atomics to CAS loops, #45122 is an attempt at not doing that, but it had some issues. And yeah, we would need to teach it to fall back to the CAS if it's not supported (I'm not sure LLVM is able to do that by itself)
vchuravy
changed the title
Optimize atomic operations with LLVM 9
Optimize atomic floating-point operations
Jun 6, 2023
LLVM 9 provides built-ins for atomic floating-point operations (see http://releases.llvm.org/9.0.0/docs/ReleaseNotes.html). Julia should use these in
Base/atomics.jl
, as they are likely faster than the current implementation usingatomic_cas!
.The text was updated successfully, but these errors were encountered: