XOCC/Makefile Flow for Collecting Timeline and Device Trace Data
Follow these instructions to enable timeline and device trace data collection in the XOCC/Makefile flow:
- Turn on debug code generation during kernel
compilation.
xocc -g ...
- Link the bitstream file (.xclbin) to the profile_kernel
option
xocc -g -l --profile_kernel data:all:all:all ...
This enables the executable to log all profile data for every kernel. The argument provided through the profile_kernel option can be used to limit data collection, which might be required in large systems.
Note: The profile_kernel option is additive, and can be used multiple times on the link line. - Create a sdaccel.ini file in
the same directory as the host executable with the contents
below:
[Debug] timeline_trace=true device_profile=true
- Convert the CSV report to the Application Timeline format using
the sdx_analyze utility before it can be
opened and displayed in the SDAccel
GUI.
sdx_analyze trace sdaccel_timeline_trace.csv
This creates the sdaccel_timeline_trace.wdb file by default which can be opened from the GUI.