the Atomix example from the docs fails with Complex element types:
using Atomix, KernelAbstractions
function index_fun_fixed(arr; backend=get_backend(arr))
out = similar(arr)
fill!(out, 0)
kernel! = my_kernel_fixed!(backend)
kernel!(out, arr, ndrange=(size(arr, 1), size(arr, 2)))
return out
end
@kernel function my_kernel_fixed!(out, arr)
i, j = @index(Global, NTuple)
for k in 1:size(out, 1)
Atomix.@atomic out[k, i] += arr[i, j]
end
end
Hi,
the Atomix example from the docs fails with Complex element types:
Results in:
Not sure if an Atomix or KernelAbstractions problem?
Best,
Felix