-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernels.h file mandatory? #260
Comments
Yes, kernels.h is required when AIE parameter buffers are used in the design. Because AI Engine local memory is at a premium, it is much more efficient for the AI Engine compiler to manage the arrays explicitly for specific kernels than to leave a large amount of stack or heap space on every processor. The compiler allocates a limited amount of static heap space for such arrays. (These arrays are called AIE parameter buffers) VSI Approach: 1- Source code modifications: #ifndef USER_PARAMETER_H #ifndef VSI_AUTOVEC The header file should be included in the kernel source file and the buffers can be accessed inside the kernel function directly. 2- GUI modifications: 2-4- If you don’t want to put location constraints for these buffers, just type in the type of the array in front of the “Type” box So In your design, if any of your kernel’s block (vsi_gen_ip) has one or more array names in “AIE Memories” box in “Advanced AI Parameters tab” then your design must have the kernels.h with mentioned format. And if your arrays are small enough to fit to the AI local memory, you can remove their names from “AIE Memories” and remove the #include "kernels.h" from your source code. Please let us know if you have any further questions. |
Is there something special about having a file named kernels.h?
I removed all references to kernels.h from the code I'm running because I used a differently named header file, but I’m still getting this error:
vsi_sw: In file included from /proj/DSSoC/PLAID/app1_STAP/stap_acap/vsi/substitution_baseline/vsi_auto_gen/sw/system_1/versal_aie/src/main_versal_aie.cxx:9:0:
vsi_sw: /proj/DSSoC/PLAID/app1_STAP/stap_acap/vsi/substitution_baseline/vsi_auto_gen/sw/system_1/versal_aie/src/versal_aie.cxx:6:21: fatal error: kernels.h: No such file or directory
vsi_sw: #include "kernels.h"
vsi_sw: ^
vsi_sw: compilation terminated.
It’s almost like the tool is hardcoded somewhere to look for a file named kernels.h.
The text was updated successfully, but these errors were encountered: