Intel® FPGA SDK for OpenCL™ Pro Edition: Programming Guide

ID 683846
Date 6/21/2022

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

8.2.1. Emulating a Kernel that Passes Pipes or Channels by Value

The Intel® FPGA SDK for OpenCL™ Emulator supports a kernel that passes pipes or channels by value.

You may emulate a kernel that passes a channel or pipe by value, as shown in the following example:

channel uint my_ch;

void my_function (channel uint ch,
                  __global uint * dst, int i)
    dst[i] = read_channel_intel(ch);

__kernel void
consumer (__global uint * restrict dst)
    for (int i=0;i<5;i++)
        my_function(my_ch, dst, i );