.png)
ROCm을 설치하는 방법 (ubuntu20.04)
! ! ! ! ! ! ! ! ! ! 절대! ! ! ! ! 읽어주세요.
ROCm은 설치에 실패하면 에러로 아프데도 다른 파일의 설치를 할 수 없다 요주의
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rock-dkms-firmw
are.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-43-generic (x86_64)
Consult /var/lib/dkms/amdgpu/4.0-23/build/make.log for more information.
dpkg: error processing package rock-dkms (--configure):
installed rock-dkms package post-installation script subprocess returned error
exit status 10
dpkg: dependency problems prevent configuration of rocm-dkms:
rocm-dkms depends on rock-dkms; however:
Package rock-dkms is not configured yet.
dpkg: error processing package rocm-dkms (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
Errors were encountered while processing:
rock-dkms
rocm-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
이런 느낌의 에러가 나와 포장
그러니 조심스럽게 정중하게 읽으십시오.
테스트 환경
OS 우분투 20.04
Linux 5.4.0-54-generic
CPU Ryzen 7 2700X
GPU RX5700xt
1단계. 커널 변경
우선 ROCm은
Linux-5.8을 지원하지 않으므로 설치할 수 없습니다.
그래서 자신의 커널 버전을 확인합니다.
uname -a
Linux-headers-5.8.0-43-generic#이런 느낌으로 나올 것 같아요
그런 다음 해당 Linux 5.4를 다운로드합니다.
sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-modules-extra-5.4.0-54-generic
그리고
재부팅하고 Advanced options for Ubuntu를 열고 Linux 5.4.0-54-generic을 선택합니다.

시작할 때 Shift를 길게 눌러 내는 느낌입니다.
다음에 커널의 변경을 확인 ※윈도우는 지우지 말고
uname -a
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
귀찮은 사람만
커널을 삭제하는 방법
x.x.x에 버전을 넣으십시오.
sudo apt-get autoremove --purge linux-*x.x.x*
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2단계. 설치
공식 ※와는, 다른 설치 방법입니다
이 사람의 동영상을 참조하십시오 (여기서는이 사람과 동일합니다)
추천인 설치 방법입니다.
그룹 및 PATH
echo 'ADD_EXTRA_GROUPS=1' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=video' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=render' | sudo tee -a /etc/adduser.conf
업데이트
sudo apt update
필요한 패키지
sudo apt install libnuma-dev libncurses5
ROCmapt 리포지토리 추가
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
ROCmapt 리포지토리 추가 2
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
한 번 더 업데이트
sudo apt update
재부팅하고 Advanced options for Ubuntu를 열고 Linux 5.4.0-54-generic을 선택하십시오 (삭제 한 사람 필요 없음).
ROCOm 설치
sudo apt install rocm-dkms
설치하는 동안 새 창에서 터미널을 엽니다.
usermod 명령
sudo usermod -aG video ユーザー名
usermod 명령 2
sudo usermod -aG render ユーザー名
PATH 설정
echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/rocprofiler/bin:/opt/rocm/opencl/bin' | sudo tee -a /etc/profile.d/rocm.sh
ROCm이 설치되면 재부팅 Advanced (이하 약어)
확인
/opt/rocm/bin/rocminfo
요약
고마워요. 뭔가 질문이나 궁금한 점이 있으면 댓글을 달아주세요.
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rock-dkms-firmw
are.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-43-generic (x86_64)
Consult /var/lib/dkms/amdgpu/4.0-23/build/make.log for more information.
dpkg: error processing package rock-dkms (--configure):
installed rock-dkms package post-installation script subprocess returned error
exit status 10
dpkg: dependency problems prevent configuration of rocm-dkms:
rocm-dkms depends on rock-dkms; however:
Package rock-dkms is not configured yet.
dpkg: error processing package rocm-dkms (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
Errors were encountered while processing:
rock-dkms
rocm-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
OS 우분투 20.04
Linux 5.4.0-54-generic
CPU Ryzen 7 2700X
GPU RX5700xt
1단계. 커널 변경
우선 ROCm은
Linux-5.8을 지원하지 않으므로 설치할 수 없습니다.
그래서 자신의 커널 버전을 확인합니다.
uname -a
Linux-headers-5.8.0-43-generic#이런 느낌으로 나올 것 같아요
그런 다음 해당 Linux 5.4를 다운로드합니다.
sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-modules-extra-5.4.0-54-generic
그리고
재부팅하고 Advanced options for Ubuntu를 열고 Linux 5.4.0-54-generic을 선택합니다.

시작할 때 Shift를 길게 눌러 내는 느낌입니다.
다음에 커널의 변경을 확인 ※윈도우는 지우지 말고
uname -a
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
귀찮은 사람만
커널을 삭제하는 방법
x.x.x에 버전을 넣으십시오.
sudo apt-get autoremove --purge linux-*x.x.x*
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2단계. 설치
공식 ※와는, 다른 설치 방법입니다
이 사람의 동영상을 참조하십시오 (여기서는이 사람과 동일합니다)
추천인 설치 방법입니다.
그룹 및 PATH
echo 'ADD_EXTRA_GROUPS=1' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=video' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=render' | sudo tee -a /etc/adduser.conf
업데이트
sudo apt update
필요한 패키지
sudo apt install libnuma-dev libncurses5
ROCmapt 리포지토리 추가
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
ROCmapt 리포지토리 추가 2
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
한 번 더 업데이트
sudo apt update
재부팅하고 Advanced options for Ubuntu를 열고 Linux 5.4.0-54-generic을 선택하십시오 (삭제 한 사람 필요 없음).
ROCOm 설치
sudo apt install rocm-dkms
설치하는 동안 새 창에서 터미널을 엽니다.
usermod 명령
sudo usermod -aG video ユーザー名
usermod 명령 2
sudo usermod -aG render ユーザー名
PATH 설정
echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/rocprofiler/bin:/opt/rocm/opencl/bin' | sudo tee -a /etc/profile.d/rocm.sh
ROCm이 설치되면 재부팅 Advanced (이하 약어)
확인
/opt/rocm/bin/rocminfo
요약
고마워요. 뭔가 질문이나 궁금한 점이 있으면 댓글을 달아주세요.
uname -a
sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-modules-extra-5.4.0-54-generic
uname -a
sudo apt-get autoremove --purge linux-*x.x.x*
공식 ※와는, 다른 설치 방법입니다
이 사람의 동영상을 참조하십시오 (여기서는이 사람과 동일합니다)
추천인 설치 방법입니다.
그룹 및 PATH
echo 'ADD_EXTRA_GROUPS=1' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=video' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=render' | sudo tee -a /etc/adduser.conf
업데이트
sudo apt update
필요한 패키지
sudo apt install libnuma-dev libncurses5
ROCmapt 리포지토리 추가
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
ROCmapt 리포지토리 추가 2
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
한 번 더 업데이트
sudo apt update
재부팅하고 Advanced options for Ubuntu를 열고 Linux 5.4.0-54-generic을 선택하십시오 (삭제 한 사람 필요 없음).
ROCOm 설치
sudo apt install rocm-dkms
설치하는 동안 새 창에서 터미널을 엽니다.
usermod 명령
sudo usermod -aG video ユーザー名
usermod 명령 2
sudo usermod -aG render ユーザー名
PATH 설정
echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/rocprofiler/bin:/opt/rocm/opencl/bin' | sudo tee -a /etc/profile.d/rocm.sh
ROCm이 설치되면 재부팅 Advanced (이하 약어)
확인
/opt/rocm/bin/rocminfo