Memory Access Violation and Valgrind Support - 2023.2 English

Vitis Tutorials: AI Engine

Document ID
XD100
Release Date
2023-11-29
Version
2023.2 English

Memory access violations occur when a kernel is reading or writing out of bounds of an object or reading uninitialized memory. This can manifest itself in multiple ways like a simulator crash or hang. The x86simulator --valgrind option will find memory access violations in kernel source code.

NOTE: Valgrind needs to be installed for this feature to work. AMD recommends using Valgrind version 3.16.1. This option allows detection of memory access violations in kthe ernel source code using the x86simulator with Valgrind. The following kinds of access violations can be detected:

  • Out-of-bounds write

  • Out-of-bounds read

  • Read of uninitialized memory