NVidia’s been pretty vocal over the last year with things like Parallel Nsight for Visual Studio and other impressive tools for debugging GPU and CUDA code under Windows, but OSX has been left out.  No more is that the case as NVidia just squeaks under the 2010 timeframe with a beta of ‘cuda-gdb’ for OSX.

cuda-gdb works just like gdb, extending existing gdb commands like thread, print, step, etc. to work naturally with GPGPU programming constructs. Additional GPU specific commands like info cuda threads, info cuda warps and info cuda devices, and more provide deeper insight into how your code is being executed on the GPU. cuda-gdb also works great within Emacs and DDD.

via cuda-gdb.