Forum Discussion
Altera_Forum
Honored Contributor
10 years agoIs it necessary to exit a kernel in order to transfer data to host?
Hello everyone! I recently got my hands on an OpenCL board and so far it's been really nice to work with it. Question: I want to send regular updates up to the host and down to the kernel...
Altera_Forum
Honored Contributor
10 years agoHi,
There is another method. I haven't tried it myself, but it seems you might be able to use I/O channels or pipes to stream data between the host and the running kernel. In the programming guide (https://www.altera.com/en_us/pdfs/literature/hb/opencl-sdk/aocl_programming_guide.pdf), it says: --- Quote Start --- Include an io attribute in your OpenCL pipe declaration to declare a special I/O pipe to interface with input or output features of an FPGA board. These features might include network interfaces, PCIe, cameras, or other data capture or processing devices or protocols. --- Quote End --- I encourage you to read more in the guide and let us know how it works out. Smith