Kernel Code Conversion - 2025.2 English - UG1079

AI Engine Kernel and Graph Programming Guide (UG1079)

Document ID
UG1079
Release Date
2025-11-26
Version
2025.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, use vector referencing with a vector iterator. This approach enables the vector processor and delivers optimal performance.

If the kernel algorithm uses a scalar data type, use iterators to simplify the code. Iterators make the code portable and safer than pointer referencing.