Open ccnankai opened 2 years ago
By default, the HIP runtime does not load the code objects for device code until a kernel is actually launched. This means you either need to set pending breakpoints, or disable the deferred code object loading. See the restriction described in item 11 in section "22.4.10.16 AMD GPU Restrictions" of the ROCgdb User Manual installed at /opt/rocm/share/doc/rocgdb/rocgdb.pdf .
@ccnankai Do you still need assistance with this ticket? If not, please the close ticket. Thanks!
Hi, The rocm-5.2.1 installation package does not contain rocgdb by default,,so users have to compile and install it themselves.
step1:
I used the following config options:
_../configure --program-prefix=roc \ --enable-64-bit-bfd --enable-targets="x8664-linux-gnu,amdgcn-amd-amdhsa" \ --disable-ld --disable-gas --disable-gdbserver --disable-sim --enable-tui \ --disable-gdbtk --disable-gprofng --disable-shared --with-expat \ --with-system-zlib --without-guile --with-babeltrace --with-lzma \ --with-python=python3
step2: Use the hipcc command with the -g option to generate the executable file
step3: Run rocgdb
rocgdb ./bit_extract
(gdb) b 12
error:no comiled code for line 12 .....
Which step is wrong?