Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi BadOmen,
I believe these kernels are bug-free. but they had originally been written for GPU. I will try to see if I had made any warp based sync assumptions. thanks for your suggestion. --- Quote Start --- The only time I have seen that is when I debug and accidentally step to code around the time the kernel is launched, basically the kernel launches, the CPU is paused and then eventually the runtime thinks that the kernel is hung. The other thing that can cause this is buggy kernel code. I would inspect the kernel to make sure there are no race conditions or problematic statements like having barriers inside 'if' statements for example. Since OpenCL archetictures vary between devices and vendors code with potential race conditions can work on one target and fail on another. I have seen this happen with code that ran fine on a GPU but failed on the FPGA because on the FPGA doesn't have a concept of a warp or wavefront which can sometimes mask race conditions due to the way these scheduling works on the GPU. --- Quote End ---