Forum Discussion

whan01's avatar
whan01
Icon for New Contributor rankNew Contributor
6 years ago

Does HARPv2 not support Opencl v2.0 NDRange Kernel?

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?

5 Replies

    • whan01's avatar
      whan01
      Icon for New Contributor rankNew Contributor

      Hi,

      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.

    • whan01's avatar
      whan01
      Icon for New Contributor rankNew Contributor

      All according to the guidance in this pdf.

  • KhaiChein_Y_Intel's avatar
    KhaiChein_Y_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi,

    I cannot reproduce the error mentioned. May I know the software version and steps to reproduce the error?

    Thanks.