Autorun kernel stopped in emulation mode and never come back for FPGA OpenCL SDK v18.1.0
I have encountered a problem with the emulator of the OpenCL SDK for FPGA. The autorun kernels never come back after a few rounds of execution. I have used the following scheme to test:
---------------------------------------------------
__kernel
__attribute__((autorun))
__attribute__((max_global_work_dim(0)))
__attribute__((num_compute_units(4)))
void myKernel()
{
int compute_id = get_compute_id(0);
// as the first statement
printf("kernel-%d started ...\n", compute_id);
/// some other codes for computation
// as the last statement
printf("kernel-%d finished !!!\n", compute_id);
}
-------------------------------------
after automatically restarted for a few times, one of the autorun kernel (surprisingly not all kernels stopped) never come back after printed out the "finishing" statement in software emulation mode.
When running on FPGA, everything is OK.
Is this possibly a bug ? how could find what really happend ?
I was using v18.1.0 and BSP for DE5net v18.0.