I tried to enqueue an NDRange kernel on HARPv2. However it returns -59 (CL_INVALID_OPERATION) when I execute the host program and the code arrives at "enqueueNDRangeKernel" (in device code I didn't give any attribute to kernel so the maximum work group size is 16x16). I use SVM instead of buffers to parse data between CPU and FPGA.
I read about some example code on HARPv2 and find all of what use SVM declares the attribute of kernel to be "task" so it is a single-item mode. Does this mean that HARPv2 doesn't support NDRange Kernel with local size > 1?
Here's my design. I just debug one kernel so I commented out all irrelevant content.
I have found one feasible design, which move the declareation of variable of kernel function with "__local" quanlifier from list to inside the function body. I don't know if that is the problem that the kernel cannot be implementd.