cancel
Showing results for 
Search instead for 
Did you mean: 

ROCm Discussions

hillbert
Journeyman III

Cannot set breakpoints inside the kernel function, cannot step into kernel function ,rocm-5.2.1

 

1.

Follow the steps provided on the official website【https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.2.1/page/How_to_Install_ROCm.html】 to successfully install rocm5.2.1.

sudo amdgpu-install --usecase=rocm
sudo amdgpu-install --usecase=dkms
sudo amdgpu-install --usecase=hiplibsdk,rocm

2. build rocgdb

rocgdb is not in the rocm5.2.1 installation package, so users have to compile it themselves.

configuration options:

../configure --program-prefix=roc \
  --enable-64-bit-bfd --enable-targets="x86_64-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

 

3.

Use the hipcc command with the -g option to generate an executable file.

hippc -g -o text_x   vecAdd.cpp

 

4. env: 

hillbert_0-1661669848693.png

 

hillbert_1-1661669848695.png

 

hillbert_2-1661669848696.png

 

 

hillbert_0-1661669731579.png

 

 

5.

invodke rocgd:

rocgdb ./test_x

The following error occurred:

no compiled code for line 12 in the current file.

hillbert_0-1661615582629.png

 

which step is wrong ?

0 Likes
0 Replies