-
Notifications
You must be signed in to change notification settings - Fork 62
Interactive Debugging
Oclgrind supports a simple, GDB-style interactive debugger, which allows you to step through the execution of a kernel. To enable interactive mode, pass the -i
flag to oclgrind
, before the command you wish to run. The interactive debugger supports a limited subset of the commands available in GDB. Oclgrind will automatically break at the start of each kernel invocation, and also whenever it encounters an invalid memory access. Breakpoints for specific source lines can be set with the break
command. Oclgrind will execute work-items to completion sequentially, but you can switch to a specific work-item with the workitem
command. The print
command will allow you to view the contents of a variable, and the *mem
commands allow you to inspect regions of memory. For more information type help
.
TODO: Detailed description of each command and usage