Skip to content

Instantly share code, notes, and snippets.

@mthadley
Last active November 29, 2020 19:56
Show Gist options
  • Save mthadley/785836ab2e2b2e881c829ed658ecdcb2 to your computer and use it in GitHub Desktop.
Save mthadley/785836ab2e2b2e881c829ed658ecdcb2 to your computer and use it in GitHub Desktop.
OpenCL Install Script for AMDGPU PRO driver on Ubuntu 20.04
#!/usr/bin/env bash
#
# Author: Michael Hadley
# Tested on:
# OS: Ubuntu 20.04
# Kernel: 5.8.0-29-generic
# Pro Driver: 20.45
#
# Custom install script for the OpenCL components of the "AMDGPU-PRO" driver. I was unable to use the
# script that came with the driver asit always atempted to install componetns that depend on the amdgpu-dkms
# package, which wasn't supported on my OS/Kernel version (Ubuntu 20.10/5.8.0-29-generic).
#
# To uninstall, just run the `./amdgpu-install --uninstall` flag and switch, which works normally.
dpkg -i \
clinfo-amdgpu-pro_20.45-1164792_amd64.deb \
hip-rocr-amdgpu-pro_20.45-1164792_amd64.deb \
opencl-rocr-amdgpu-pro_20.45-1164792_amd64.deb \
libdrm2-amdgpu_2.4.100-1164792_amd64.deb \
libdrm-amdgpu-amdgpu1_2.4.100-1164792_amd64.deb \
ocl-icd-libopencl1-amdgpu-pro_20.45-1164792_amd64.deb \
hsa-runtime-rocr-amdgpu_1.2.0-1164792_amd64.deb \
amdgpu-pro-core_20.45-1164792_all.deb \
hsakmt-roct-amdgpu_1.0.9-1164792_amd64.deb \
amdgpu-core_20.45-1164792_all.deb \
comgr-amdgpu-pro_1.7.0-1164792_amd64.deb \
libdrm-amdgpu-common_1.0.0-1164792_all.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment