Forked from kadrim/install_amdgpu__vce_mesa_opencl.sh
Created
December 10, 2021 20:59
-
-
Save TypeNaN/ebe10a97106bbdb4cd326af8ea0a1ea9 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