Forum Discussion
whitepau_altera
Contributor
11 months agoHello!
You can learn about this in the loop_initiation_interval tutorial and the kernel_args_restrict tutorial.
Basically, you need to tell the compiler that the kernel arguments don't alias with the kernel_args_restrict attribute:
struct FunctorKernel { // ------------------------------------------- // Kernel interface definition. // ------------------------------------------- [[intel::kernel_args_restrict]] void operator()() const { // ---------------------------------------- // Kernel code implementation. // ---------------------------------------- } };