Skip to content

False positive: Possible method call error when using KernelAbstractions.jl #389

@harishanand95

Description

@harishanand95

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)

2024-06-06-1717694769_screenshot_3840x2160

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions