Forum Discussion
Intel FPGA SDK for OpenCL: Issue while launching same opencl kernel multiple times
- 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:
Note: link mention are for example with GPU as the hardware, however the execution concept are the same.
Best Wishes
BB
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:
Note: link mention are for example with GPU as the hardware, however the execution concept are the same.
Best Wishes
BB
- chandrasekhar922 years ago
New Contributor
Hi,
Thank you for your time.
I am able to solve the issue after making changes to hardware. The BSP that I made changes is the DE1-SoC BSP provided with OpenCL SDK. I am using GPIO pins to connect with D5M camera which uses same pin from fpga kernel clk. It might be the reason that is interfering with OpenCL kernel queuing. Once I separated them, and I used clFinish() as suggested by you, and able to run and enqueue kernel multiple times.
Appreciate your help.