AMD GPU debugging: Why it’s still so hard and what low-level access reveals
This blog post by Abdelhadi explores the development of a debugger for AMD GPUs, detailing the process of establishing a connection with the GPU, creating and mapping buffers, writing commands, and implementing features like breakpoints, stepping, and source code line mapping. It also discusses the challenges of context-switching and saving GPU register states, as well as the integration of SPIR-V code and Vulkan for more advanced debugging capabilities.
This is a fascinating peek under the covers of a modern graphics card. Ever wonder how to interact with a video card without using something like Vulkan? This post will tell you how.