ROCm / ROCgdb

This is ROCgdb, the ROCm source-level debugger for Linux, based on GDB, the GNU source-level debugger.
https://rocm.docs.amd.com/projects/ROCgdb/en/latest/
GNU General Public License v2.0
50 stars 9 forks source link

[Question] enable AMDGPU precise memory access reporting #17

Closed zjin-lcf closed 1 year ago

zjin-lcf commented 1 year ago

I have two questions. How can a user enable the AMDGPU precise memory access reporting ? Could it be enabled by default ? Thanks.

Warning: precise memory violation signal reporting is not enabled, reported
location may not be accurate.  See "show amdgpu precise-memory".

(gdb) show amdgpu precise-memory
AMDGPU precise memory access reporting is off (currently disabled).
t-tye commented 1 year ago

You can use the "set amdgpu precise-memory on" command. See section "22.4.10.13 AMD GPU Memory Violation Reporting" in the ROCgdb User Manual at https://docs.amd.com/bundle/ROCDebugger-User-Guide-v5.3/page/AMD-GPU.html .

It is not enabled by default as it can affect performance. But you could enable it in your gdbinit startup file.

zjin-lcf commented 1 year ago

Thank you for your explanation and link.