Forum Discussion
MN_
New Contributor
7 years agoCan I read and write buffers simultaneously with OpenCL.
Hello, I am using the FPGA board de5net from Terasic with a Stratix V FPGA. It is connected the to host via PCIe. To obtain a hight throughput I want to read an write buffers simultaneously but unf...
HRZ
Frequent Contributor
7 years agoIndeed you can read and write from/to two different buffer simultaneously. You should create two queues, one for each operation, and set the third parameter in clEnqueueRead/WriteBuffer to CL_FALSE so that the operations are performed in a non-blocking fashion. You can then use OpenCL events to synchronize the operations. Also this topic should probably be in the “FPGA Design Tools” section.