CUDA.jl icon indicating copy to clipboard operation
CUDA.jl copied to clipboard

Unify CUDA.@atomic with Base.@atomic in 1.7

Open maleadt opened this issue 3 years ago • 3 comments

maleadt avatar Jun 18 '21 05:06 maleadt

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"?

DilumAluthge avatar Jun 30 '21 09:06 DilumAluthge

Hopefully, yes, if Base.@atomic is extensible enough to cover CUDA.jl's needs.

maleadt avatar Jun 30 '21 10:06 maleadt

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).

maleadt avatar Jan 10 '22 16:01 maleadt