News for hackers. Stuff that matters.
Re:AMD GPU Debugger by snarfy on Monday December 08, 2025 @12:28PM (#46195053)
Is there not an official tool from AMD?
Re:AMD GPU Debugger by c2h5oh on Monday December 08, 2025 @12:37PM (#46195175)
Re:AMD GPU Debugger by slavik81 on Monday December 08, 2025 @02:29PM (#46196538)
It's worth noting that upstream gdb (and clang) are somewhat limited in GPU debugging support because they only use (and emit) standardized DWARF debug information. The DWARF standard will need updates before gdb and clang can reach parity with the AMD forks, rocgdb and amdclang, in terms of debugging support. It's nothing fundamental, but the AMD forks use experimental DWARF features and the upstream projects do not.

It's a little out of date now, but Lance Six had a presentation about the state of AMD GPU debugging in upstream gdb at FOSDEM 2024. https://archive.fosdem.org/2024/events/attachments/fosdem-20...

Re:AMD GPU Debugger by core-explorer on Tuesday December 09, 2025 @07:46AM (#46204348)
The extensions were voted into the upcoming DWARF 6 standard, e.g.https://dwarfstd.org/issues/211206.1.html
Re:AMD GPU Debugger by thegeeko on Monday December 08, 2025 @02:47PM (#46196724)
amd gdb is an actual debugger but it only works with applications that emit dwarf and use the amdkfd KMD aka it doesn't work with graphics .. all of the rest are not a actual debuggers .. UMR does support wave stepping but it doesn't try to be a shader debugger rather a tool for drivers developers and the AMD tools doesn't have any debugging capabilities.
Re:AMD GPU Debugger by almostgotcaught on Monday December 08, 2025 @12:42PM (#46195264)
> After searching for solutions, I came across rocgdb, a debugger for AMD’s ROCm environment.

It's like the 3rd sentence in the blog post.......

Re:AMD GPU Debugger by djmips on Monday December 08, 2025 @12:57PM (#46195451)
to be fair it wasn't clear that was an official AMD debugger and besides that's only for debugging ROCm applications.
Re:AMD GPU Debugger by almostgotcaught on Monday December 08, 2025 @02:23PM (#46196474)
this sentence doesn't make any sense a) ROCm is an AMD product b) ROCm "applications" are GPU "applications".
Re:AMD GPU Debugger by fc417fc802 on Monday December 08, 2025 @02:47PM (#46196725)
But not all GPU applications are ROCm applications (I would think).

I can certainly understand OP's confusion. Navigating parts of the GPU ecosystem that are new to you can be incredibly confusing.

Re:AMD GPU Debugger by thegeeko on Monday December 08, 2025 @02:50PM (#46196746)
there's 2 AMD KMD(kernel mode drivers) in linux: amdkfd and amdgpu .. the graphics applications use the amdgpu which is not supported by amdgdb .. amdgdb also has the limitation of requiring dwarf and and mesa/amd UMDs doesn't generate that ..
Re:AMD GPU Debugger by dman on Tuesday December 09, 2025 @05:06AM (#46203244)
Do you know which one rocm uses?
Re:AMD GPU Debugger by thegeeko on Tuesday December 09, 2025 @06:06AM (#46203567)
amdkfd
Re:AMD GPU Debugger by dman on Wednesday December 10, 2025 @10:49AM (#46219123)
Thank you!