Proper use of the restrict keyword (__restrict
) in AI Engine kernel programming can result in performance gains and
eliminate undefined behaviors in your code. However, be aware that when assigned to the
same scope, the restrict pointers might result in undefined behavior in your design.
Figure 1. Restrict Keyword Use Summary