Library
AI Engine/User-Defined Functions
Description
The AIE Kernel block allows you to import an AI Engine kernel which is a C/C++ program. This block supports importing Window, Stream, Cascade, and Run time parameter as arguments to kernel function. This block also allows you to import a function template with typename template parameter T, and a non-type (integral) template parameter N.
Parameters
Parameter Name | Parameter Type | Criticality | Description |
---|---|---|---|
Kernel header file | String | Mandatory | Name of the header file that contains the kernel function declaration. The string could be just the file name, a relative path to the file or an absolute path of the file. Use the browse button to choose the file. |
Kernel function | String | Mandatory | Name of the kernel function for which the block is to be created. This function should be declared in the kernel header file. |
Kernel init function | String | Optional | Name of the initialization function used by the kernel function. |
Kernel source file | String | Mandatory | Name of the source file that contains the kernel function definition. The string could be the file name, a relative path to the file or an absolute path of the file. |
Kernel search paths | Vector of Strings | Optional |
If the kernel header file or the kernel source file are not found using the value provided through the 'Kernel header file' or 'Kernel source file' fields respectively, then the paths provided through 'Kernel search paths' are used to find the files. This parameter allows use of environment
variables while specifying paths for the kernel header file and
the kernel source file. The environment variable can be used in
either |
Preprocessor options | Optional |
Optional preprocessor arguments for downstream compilation with specific preprocessor options. The following two preprocessor option formats are accepted and multiple
can be selected: |