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
T = ComplexF32
A =ones(T, 3);
Atomix.@atomic A[1] +=1
ERROR: MethodError: no method matching modify!(::Ptr{…}, ::typeof(+), ::ComplexF32, ::UnsafeAtomics.Internal.LLVMOrdering{…}, ::UnsafeAtomics.Internal.LLVMSyncScope{…})
The function`modify!` exists, but no method is defined for this combination of argument types.
Closest candidates are:modify!(::Ptr{T}, ::typeof(UnsafeAtomics.right), ::T, ::Any, ::Any) where T
@ UnsafeAtomics ~/.julia/packages/UnsafeAtomics/vpyYB/src/core.jl:309modify!(::Any, ::Any, ::Any, ::Any)
@ UnsafeAtomics ~/.julia/packages/UnsafeAtomics/vpyYB/src/core.jl:11modify!(::Ptr{Int16}, ::typeof(+), ::Int16, ::UnsafeAtomics.Internal.LLVMOrdering{:seq_cst}, ::UnsafeAtomics.Internal.LLVMSyncScope{:none})
@ UnsafeAtomics ~/.julia/packages/UnsafeAtomics/vpyYB/src/core.jl:218...
Stacktrace:
[1] modify!
@ ~/.julia/packages/UnsafeAtomics/vpyYB/src/core.jl:11 [inlined]
[2] modify!(ref::Atomix.Internal.IndexableRef{…}, op::typeof(+), x::Int64, ord::UnsafeAtomics.Internal.LLVMOrdering{…})
@ Atomix.Internal ~/.julia/packages/Atomix/2spi2/src/core.jl:33
[3] top-level scope
@ ~/GitHub/Research/Undef/GPU Benchmark/GPU Benchmark.jl:62
Some type information was truncated. Use `show(err)` to see complete types.
Hi,
the Atomix example from the docs fails with Complex element types:
Results in:
Not sure if an Atomix or KernelAbstractions problem?
Best,
Felix
The text was updated successfully, but these errors were encountered: