Forum Discussion
Altera_Forum
Honored Contributor
8 years agoclEnqueueNDRangeKernel() blocking or no blocking
Hi everyone, I would like to say if clEnqueueNDRangeKernel() is a blocking function. In fact, reading and writing operations can be blocking or no blocking depending on the flag I set inside th...
Altera_Forum
Honored Contributor
8 years ago@Jasmine-J, assuming that you are programming both the CPU and FPGA using OpenCL, you can create two separate queues, one for each device, and run your kernels in parallel on the different queues and use events to synchronize them. Either way, clEnqueueNDRangeKernel() is NOT a blocking call and the best way to synchronize kernels or code segments that are supposed to run in parallel is to use events.