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:




5.
invodke rocgd:
rocgdb ./test_x
The following error occurred:
no compiled code for line 12 in the current file.

which step is wrong ?