-
Notifications
You must be signed in to change notification settings - Fork 3
DownGrade ROCM
Kiriti Gowda edited this page Jul 3, 2018
·
6 revisions
Inference Engine
- Ubuntu 16.04 install
- sudo apt-get update
- sudo apt-get dist-upgrade
- sudo reboot
- Download rocm 1.6.4 and install 4.11.0-kfd-compute-rocm-rel-1.6-180
- http://repo.radeon.com/rocm/archive/apt_1.6.4.tar.bz2 -- download the package and untar
- mkdir rocm
- mv apt_1.6.4 rocm/
- cd rocm
- mkdir kfd-deb
- find apt_1.6.4/ -name "*.deb" -exec mv "{}" kfd-deb/ ;
- sudo dpkg -i *.deb (will give you a few errors)
- sudo apt-get install -f (fix errors)
- sudo dpkg -i *.deb (will install all packages)
- sudo apt-get install -f (no errors to fix)
- sudo apt autoremove
- sudo reboot
- uname -r (should give you -- 4.11.0-kfd-compute-rocm-rel-1.6-180)
- cd /opt/rocm/opencl/bin/x86_64/
- ./clinfo -- if sucess, rocm 1.6.4 install sucessful
- install deps form github, follow github instructions
- install rocm-cmake
- install MIOpenGEMM
- install MIOpen (using cmake -DMIOPEN_BACKEND=OpenCL)
- install protobuf
- install opencv (cmake -DWITH_OPENCL=OFF -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF -DWITH_VA_INTEL=OFF -DWITH_OPENCL_SVM=OFF ../../opencv-3.3.0/ -- turn off opencl deps)
- install amdovx-modules
- export PATH=$PATH:/opt/rocm/bin
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/lib
- run annInference server and client, now you can run your models and dataset.
-
- Install kernel 4.13 and reboot:
sudo apt update
sudo apt upgrade
sudo apt update && sudo apt install linux-headers-4.13.0-32-generic linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic linux-signed-image-4.13.0-32-generic
sudo reboot
-
- Reboot and enter kernel 4.13, check current running kernel version by "uname -r", expect to see:
4.13.0-32-generic
-
- Install ROCm package from internal artifactory:
sudo sh -c 'echo "deb [arch=amd64] http://172.27.226.104/artifactory/list/rocm-dkms-release-1.7-ubuntu xenial main" > /etc/apt/sources.list.d/rocm.list '
sudo apt-get --allow-unauthenticated update && sudo apt-get --allow-unauthenticated install -y rocm-dkms rocm-dev \
hsa-ext-rocr-dev hsakmt-roct-dev hsa-rocr-dev \
rocm-opencl rocm-opencl-dev \
rocm-utils rock-dkms compute-firmware \
rocm-profiler cxlactivitylogger \
miopen-hip miopengemm \
rocblas hipblas rocrand
-
- Add user to the video group, update ramfs limit on the generic Linux kernel and reboot:
sudo adduser $LOGNAME video
sudo sh -c 'echo "vm.max_map_count = 250000" > /etc/sysctl.d/mmap.conf'
sudo reboot
-
- Reboot and check if the KFD module is loaded to the system, verify the version ROCK-DKMS and firmware:
lsmod | grep kfd
Expect to see:
amdkfd 266240 4
amd_iommu_v2 20480 1 amdkfd
amdkcl 24576 3 amdttm,amdgpu,amdkfd
apt --installed list | grep -E 'rock|compute-firmware'
Expect to see:
compute-firmware/now 1.7.17 all [installed,local]
rock-dkms/now 1.7.148-ubuntu all [installed,local]