Skip to content

Commit

Permalink
docker: dynamically find amdgpu deb package name (#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Dec 27, 2024
1 parent 5f7ecc0 commit 45a2d57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion install/docker/install-amd-graphics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ fi

# https://amdgpu-install.readthedocs.io/en/latest/install-prereq.html#installing-the-installer-package

FILENAME="amdgpu-install_6.3.60300-1_all.deb"
FILENAME=$(curl -s -L https://repo.radeon.com/amdgpu-install/latest/ubuntu/$distro/ | grep -o 'amdgpu-install_[^ ]*' | cut -d'"' -f1)
if [ -z "$FILENAME" ]
then
echo "AMD graphics package can not be installed. Could not find the package name."
exit 1
fi

set -e
mkdir -p /tmp/amd
cd /tmp/amd
Expand Down

0 comments on commit 45a2d57

Please sign in to comment.