Created
December 1, 2019 10:18
-
-
Save kadrim/5f0b96d20b3677a6681ed461a0df514d to your computer and use it in GitHub Desktop.
Install amdgpu-pro packages on Debian (openCL, mesa, VCE) only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -------------------------------------------------------------------------------------------------------------------------# | |
# 1st: Download the amdgpu-drivers from here: https://www.amd.com/de/support/kb/release-notes/rn-amdgpu-unified-navi-linux # | |
# -------------------------------------------------------------------------------------------------------------------------# | |
#=============================# | |
### CONFIG ### | |
# ADJUST VERSIONS ACCORDINGLY! | |
PACKAGE="amdgpu-pro" | |
VERSION="19.30-855429" | |
OS="ubuntu-18.04" | |
### CONFIG ### | |
#=============================# | |
if [ ! -f ${PACKAGE}-${VERSION}-${OS}.tar.xz ] | |
then | |
echo "Download the amdgpu-pro drivers first and adjust config for this script!" | |
exit | |
fi | |
# prepare packages | |
tar -xvf ${PACKAGE}-${VERSION}-${OS}.tar.xz | |
cd ${PACKAGE}-${VERSION}-${OS} | |
mkdir unpack | |
dpkg-deb -R opencl-${PACKAGE}_${VERSION}_amd64.deb unpack/ | |
cd unpack/ | |
cd DEBIAN | |
mv control control.orig | |
grep -v "Depends: " control.orig > control | |
cd .. | |
cd .. | |
dpkg-deb -b unpack/ opencl-${PACKAGE}_${VERSION}_amd64_nodeps.deb | |
rm -r unpack/ | |
# install needed deps | |
apt-get update | |
apt-get -y install vainfo clinfo libvdpau1 | |
dpkg -i amdgpu-core_*_all.deb | |
dpkg -i amdgpu-pro-core_*_all.deb | |
# install openCL | |
dpkg -i opencl-amdgpu-pro-comgr_*_amd64.deb | |
dpkg -i opencl-amdgpu-pro-icd_*_amd64.deb | |
dpkg -i opencl-orca-amdgpu-pro-icd_*_amd64.deb | |
dpkg -i libdrm-amdgpu-common_*_all.deb | |
dpkg -i libdrm2-amdgpu_*_amd64.deb | |
dpkg -i libdrm-amdgpu-amdgpu1_*_amd64.deb | |
dpkg -i libopencl1-amdgpu-pro_*_amd64.deb | |
# install mesa | |
dpkg -i libllvm9.0-amdgpu_*_amd64.deb | |
dpkg -i libglapi-amdgpu-mesa_*_amd64.deb | |
dpkg -i libgles2-amdgpu-mesa_*_amd64.deb | |
dpkg -i libgles1-amdgpu-mesa_*_amd64.deb | |
dpkg -i libgl1-amdgpu-mesa-glx_*_amd64.deb | |
dpkg -i mesa-amdgpu-va-drivers_*_amd64.deb | |
dpkg -i mesa-amdgpu-vdpau-drivers_*_amd64.deb | |
# install Vulkan | |
dpkg -i libwayland-amdgpu-client0_*_amd64.deb | |
dpkg -i vulkan-amdgpu-pro_*_amd64.deb | |
# install VCE | |
dpkg -i opencl-amdgpu-pro_*_amd64_nodeps.deb | |
dpkg -i amf-amdgpu-pro_*_amd64.deb | |
cd .. | |
rm -r ${PACKAGE}-${VERSION}-${OS}/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. I used the 20.40 driver with Linux Mint 20.3 and ran into some dependency issues with the order of installation, as well as an inability to get to the desktop on reboot, but OpenCL worked.