Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Debug/Profile Examples

Debugging and Profiling of Kernel.

Examples Table

Example Description Key Concepts / Keywords
debug_printf_ocl/ This is simple example of vector addition and printing of data that is computational result (addition). It is based on vectored addition that demonstrates printing of work item data (integer product in this case) Key Concepts
- Use of print statements for debugging
Keywords
- printf
- param:compiler.enableAutoPipelining=false
debug_profile_c/ This is simple example of vector addition and printing profile data (wall clock time taken between start and stop). It also dump a waveform file which can be reloaded to vivado to see the waveform. Run command 'vivado -source ./scripts/open_waveform.tcl -tclargs <device_name>-<kernel_name>..<device_name>.wdb' to launch waveform viewer. User can also update batch to gui in sdaccel.ini file to see the live waveform while running application. Key Concepts
- Use of Profile API
- Waveform Dumping and loading