xuhuisheng / rocm-build

build scripts for ROCm
Apache License 2.0
181 stars 35 forks source link

ROCm 5.4.3, gfx1012, can not build 28.rccl.sh, error: instruction not supported on this GPU #45

Open serhii-nakon opened 1 year ago

serhii-nakon commented 1 year ago

Environment

Hardware description
GPU AMD RX5500M
CPU AMD R7 4800H
Software version
OS Ubuntu 20.04 (Docker) and Debian 12 (host)
ROCm 5.4.3
Python 3.8.10

Hello I try to build Docker with you solution and I can not build 28.rccl.sh with my RX5500M and I got this error instruction not supported on this GPU (please look on logs and Dockerfile that I attached)

I also had patch conflict in 25.rocsparse.sh but I fixed it manually (I also attached it to archive with Dockerfile) I not sure but looks like we can remove this patch and use CXXFLAGS=-DROCSPARSE_USE_MOVE_DPP=0 as described here https://github.com/ROCmSoftwarePlatform/rocSPARSE/commit/f9446b8f4c3cb3a3c6d38734f9980712a82b9db9 Also I not sure that I correctly resolved this patch - but it built without problems

PS: I used Ubuntu 20.04 as you described in instruction (you can see all steps in Dockerfile)

logs.txt Dockerfiles_and_patch.zip

serhii-nakon commented 1 year ago

Sorry looks like it duplicate of https://github.com/xuhuisheng/rocm-build/issues/44

serhii-nakon commented 1 year ago

Fixed build issue using this patch rccl_patch.zip

serhii-nakon commented 1 year ago

And Docker complete building and successfully run Mnist test on my RX5500M