Kernels - 2022.2 English

AI Engine Tools and Flows User Guide (UG1076)

Document ID
UG1076
Release Date
2022-10-19
Version
2022.2 English

The Kernels table shows detailed information about the kernels used by the ADF graph. For example, the following figure shows two kernels, interpolator and classify. The following example code shows the fir_27t_sym_hb_2i and classifier kernel functions being instantiated as kernels in the graph.

interpolator = kernel::create(fir_27t_sym_hb_2i);
classify = kernel::create(classifier);
Figure 1. Kernels Table
Table 1. Column Description
Column Description
Graph Instance Shows a hierarchical view of the design graph along with the sub-graphs and kernels.
ID Unique ID given to the kernel from aiecompiler.
AI Engine Kernel The kernel function name. This does not need to match the kernel instantiated name in the graph class. For example, the fir_27t_sym_hb_2i is the function name and instantiated as interpolator as seen in the preceding code.
Source The kernel source file. Clicking this file name opens up the source file of the kernel.
Column The column in the AI Engine where the kernel is mapped.
Row The row in the AI Engine where the kernel is mapped.
Schedule The order in which kernels, if mapped to the same tile (same Column, Row) executes. A 0 means no scheduling is set.
Runtime Ratio The run-time ratio set in the graph by using runtime<ratio>(<kernel>) = n constraint.
Graph Source The source file (graph.h) with line number where the kernel is instantiated. Clicking on the link opens up the source file at the line number.