False positive: Possible method call error when using KernelAbstractions.jl
harishanand95 opened this issue · comments
Hi, when I write this example code from KernelAbstractions.jl, I see that kernels have possible method call error in vscode. I think it's confusing the arguments with backend and workgroup size.
using KernelAbstractions
@kernel function mul2_kernel(A)
I = @index(Global)
A[I] = 2 * A[I]
end
dev = CPU()
A = ones(1024, 1024)
ev = mul2_kernel(dev, 64)(A, ndrange=size(A))
synchronize(dev)
all(A .== 2.0)
Thanks!