Forum Discussion
Altera_Forum
Honored Contributor
9 years agoFPGA(Opencl) code work well in emulator mode, but can't finish run on the FPGA
Hello: When I run my FPGA(OpenCL) code in emulator mode, the result is right; but after I create hardware configuration file and run on the FPGA, the code is blocked and can't fin...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- Your observation is correct but there are a lot of unknown factors involved in the process. I recommend removing all the printf calls except the ones that are the beginning of your kernels. If your host code is structured like this, it is correct (this is a pseudo code with shortened function names): ClEnqueue(queue1, kernel1); ClEnqueue(queue2, kernel2); ClEnqueue(queue3, kernel3); ClEnqueue(queue4, kernel4); ClFinish(queue4); --- Quote End --- Hi, my host code is like this. I consulted an Intel FAE, he said my be caused by imbalance of write and read of channels! But I think, imlalance will not cause channel blocked, because I use buffered channel! What do you think?Tank you!