Kernel Code Conversion - 2023.2 English

AI Engine Kernel and Graph Programming Guide (UG1079)

Document ID
Release Date
2023.2 English

Buffer ports do not support read, read advancing, read decrementing, write, and write advancing APIs.

Access Data From a Buffer Port illustrates multiple methods for accessing data with pointer, iterator, and vector referencing.

If the kernel algorithm uses a vector, vector referencing with vector iterator is recommended to use the vector processor for best and optimized performance.

If the kernel algorithm uses a scalar data type, iterators are recommended to simplify the code, making it portable and safer compared to pointer referencing.