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.