A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-415F53DA-FC89-4242-84D5-62165BA4172B
Visible to Intel only — GUID: GUID-415F53DA-FC89-4242-84D5-62165BA4172B
Conduit Arguments
By default, the kernel arguments follow the same type of interface as the component invocation interface, but you can also mix them up. For example, you can select a memory-mapped invocation interface with arguments passed through conduits 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]; } } };