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-1661669812390.png hillbert_0-1661669812390.png](/t5/image/serverpage/image-id/72571i0240F732F028EB0E/image-size/medium?v=v2&px=400)
![hillbert_1-1661669813095.png hillbert_1-1661669813095.png](/t5/image/serverpage/image-id/72572iBCCCF131B15CC6C7/image-size/medium?v=v2&px=400)
![hillbert_2-1661669812142.png hillbert_2-1661669812142.png](/t5/image/serverpage/image-id/72573i955BCE780B69F8F1/image-size/medium?v=v2&px=400)
![hillbert_0-1661669669388.png hillbert_0-1661669669388.png](/t5/image/serverpage/image-id/72569iE2BF0AFF576C3900/image-size/medium?v=v2&px=400)
5.
invodke rocgd:
rocgdb ./test_x
The following error occurred:
no compiled code for line 12 in the current file.
![hillbert_0-1661650279949.png hillbert_0-1661650279949.png](/t5/image/serverpage/image-id/72554i25E1DA602577B8C5/image-size/medium?v=v2&px=400)
which step is wrong ?