CUDA.jl
CUDA.jl copied to clipboard
Unify CUDA.@atomic with Base.@atomic in 1.7
Can you elaborate on what "unify" means in this case?
For example, is it the end goal that in Julia 1.7+, we would have Base.var"@atomic" === CUDA.var"@atomic"
?
Hopefully, yes, if Base.@atomic
is extensible enough to cover CUDA.jl's needs.
Apparently we now have Julia intrinsics for atomic operations, so even if the API doesn't really match ours we could look into using Julia's intrinsics. Although they'll probably lack support for LLVMPtr (atomics on shared memory).