Forum Discussion

chandrasekhar92's avatar
chandrasekhar92
Icon for New Contributor rankNew Contributor
2 years ago
Solved

Intel FPGA SDK for OpenCL: Issue while launching same opencl kernel multiple times

Hi, I am using Intel FPGA SDK for OpenCL to perform matrix multiplication on DE1-SoC board. As per my requirement I have to perform this multiplication multiple times and hence iterating over a loop...
  • BoonBengT_Altera's avatar
    2 years ago

    Hi @chandrasekhar92,


    Noted that there seems to be a custom BSP involved. Is it correct to say there is no references design you are referring to and sample code are based on self written?


    After going through the situation, using clWaitForEvents to synchronize kernels in separate queues are working from previous experiences. Would recommend to try clFinish() which has similar purposes to see if that works.


    Also for the mention situation, it seem that the desire execution flow are out of order, hence below links would also explain that:

    - https://www.intel.cn/content/www/cn/zh/developer/articles/technical/opencl-out-of-order-queue-on-intel-processor-graphics.html


    Note: link mention are for example with GPU as the hardware, however the execution concept are the same.


    Best Wishes

    BB