Skip to content

Why do I get the error “ Invalid kernel arguments” when using enqueueNDRangeKernel? #72

@xmq1996

Description

@xmq1996

My current algorithm will call the enqueueNDRangeKernel function multiple times each time. Before calling it, I will use enqueueWriteBuffer to modify the value of a parameter. But the problem now is that sometimes when calling enqueueNDRangeKernel, there will be an "Invalid kernel arguments" error. The last occurrence was in the last month. It appeared again yesterday, which is too random. Can someone give me a solution? I checked the relevant information and said that this error is generally because the parameters of kenel are not set, but I checked the enqueueWriteBuffer function and reported no errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions