5 ms·
Is there not an official tool from AMD?
by snarfy 10mo ago
Is there not an official tool from AMD?
- c2h5oh 10mo agoGDB supports it https://sourceware.org/gdb/current/onlinedocs/gdb.html/AMD-GPU.html https://sourceware.org/gdb/current/onlinedocs/gdb.html/AMD-G... You also get UMR from AMD https://gitlab.freedesktop.org/tomstdenis/umr https://gitlab.freedesktop.org/tomstdenis/umr There is also a bunch of other tools provided: https://gpuopen.com/radeon-gpu-detective/ https://gpuopen.com/radeon-gpu-detective/ https://gpuopen.com/news/introducing-radeon-developer-tool-suite/ https://gpuopen.com/news/introducing-radeon-developer-tool-s...
- slavik81 10mo agoIt'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-2024-2392-rocgdb-gdb-and-amdgpu-debugging/slides/22366/FOSDEM-2024-rocgdb_v3_20240126_fXVNPiy.pdf https://archive.fosdem.org/2024/events/attachments/fosdem-20...
- core-explorer 10mo agoThe extensions were voted into the upcoming DWARF 6 standard, e.g.https://dwarfstd.org/issues/211206.1.html https://dwarfstd.org/issues/211206.1.html
- thegeeko 10mo agoamd 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.
- almostgotcaught 10mo ago> 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.......
- djmips 10mo agoto be fair it wasn't clear that was an official AMD debugger and besides that's only for debugging ROCm applications.
- deleted 10mo ago[deleted]
- almostgotcaught 10mo agothis sentence doesn't make any sense a) ROCm is an AMD product b) ROCm "applications" are GPU "applications".
- deleted 10mo ago[deleted]
- fc417fc802 10mo agoBut 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.
- thegeeko 10mo agothere'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 ..
- dman 10mo agoDo you know which one rocm uses?