Host Code Debugging
After gdb
is launched, the host code can be
debugged similar to any common application debug session. You can step through the code under GDB
and examine the OpenCL objects to verify that their contents are indeed as expected at any point
in the code.