Chapter 6. Debugging
Debugging on the GPU feels a lot like debugging on the CPU, even though the underlying mechanics are quite different. Microsoft Visual Studio 2012 makes it simple to step through code that is inside a parallel_for_each or called from one. Even though your code is translated into HLSL and shipped to the GPU to execute there, Visual Studio gives you the illusion of a call stack and a familiar debugging environment.
In general, you debug on an emulated accelerator called the reference accelerator. It’s very slow—slower than running the code on the CPU without C++ AMP—but it’s accurate and complete, and after all, when you’re debugging, ...
Get C++ AMP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.