XOCC/Makefile Flow
XOCC/Makefile users execute applications standalone outside the SDx™ environment. To ensure the profile summary data is generated, the you will have to compile the kernel files with the -g option:
xocc -g ...
Link the bitstream file (xclbin) with 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.
Executing the program will create an sdaccel_profile_summary.csv file, if profile =
true
is specified in the sdaccel.ini file
(default true).
[Debug]
profile = true
device_profile = true
The .csv file needs to be manually converted to Google Protocol Buffer format (.xprf) before the profiling result can be viewed in the integrated Profile Summary Viewer. The following is a command line example that generates an .xprf file from the .csv input file.
sdx_analyze profile sdaccel_profile_summary.csv