A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-73FC2441-1EA6-47AB-B277-8E82E07F33B5
Visible to Intel only — GUID: GUID-73FC2441-1EA6-47AB-B277-8E82E07F33B5
Emulate Applications with a Pipe That Reads or Writes to an I/O Pipe
The Intel® FPGA Emulation Platform for OpenCL™ software emulates kernel-to-kernel pipes. However, it does not support interacting directly with the hardware I/O pipes on your target board. Nevertheless, you can emulate the behavior of I/O pipes using the following procedures:
For Input I/O Pipes
- Store input data to be transferred to the pipe in a file with a name matching the id specialization of the pipe. Consider the following example:
// Specialize a pipe type struct read_io_pipe { static constexpr unsigned id = 0; }; using read_iopipe = sycl::ext::intel::kernel_readable_io_pipe<read_io_pipe, unsigned, 4>;
- Create a file named 0.
- Store the test input data in the file 0.
For Output I/O Pipes
Output data is automatically written to a file with a name matching the id specialization of the output pipe.