A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-595AE74A-C565-4C6D-87CB-B92343023D73
Visible to Intel only — GUID: GUID-595AE74A-C565-4C6D-87CB-B92343023D73
Streaming Arguments
When you generate a streaming kernel, you might want to have one or more arguments with an opposite type of interface. For example, a streaming argument with an agent kernel.
By default, the arguments follow the same type of interface as the kernel.
To override a specific interface to use conduits with an agent kernel, use the conduit macro, like in the following example:
#include <sycl/ext/intel/prototype/interfaces.hpp> using namespace sycl; struct MyIP { conduit int *input_a, *input_b, *input_c; conduit int n; MyIP(int *a, int *b, int *c, int N_) : input_a(a), input_b(b), input_c(c), n(N_) {} register_map_interface void operator()() const { for (int i = 0; i < n; i++) { input_c[i] = input_a[i] + input_b[i]; } } };