-
Notifications
You must be signed in to change notification settings - Fork 229
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
Use Atomix #1790
base: master
Are you sure you want to change the base?
Use Atomix #1790
Conversation
Formerly know as CUDAKernels.jl
References:
Notes:
|
@tkf if you have some time/interest in looking over my implementation. I intend to replace AtomicxCuda. |
So a significant difference between
whereas
Base agrees with Atomix.
|
1f8cfa3
to
419ff9b
Compare
I won't get to this soon, but we need to look at the impact of JuliaLang/julia#54707 |
5d585c4
to
c850163
Compare
Just blindly using UnsafeAtomicsLLVM sadly doesn't work
since LLVM doesn't understand CUDA atomics...
Uses most of #1644 to implement Atomicx.jl properly.
cas
forsize(T) < 4
Atomix.swap!
by usingatomic_exchange
Atomix.modify!
by using hardware implementation of common functionsld.volatile.global.u16 %rs1, [%rd2];
take AS into account, needed for shmem correctness.