Handling State Variables to Enable x86sim - Handling State Variables to Enable x86sim - 2025.2 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2026-03-27
Version
2025.2 English

Move the state variables instantiation from kernel::run to class member or use thread_local, as shown in the following figure. For more information, refer to the Memory Model section of the AI Engine Tools and Flows User Guide (UG1076).

figure11