NVIDIA: Update install-gpu.sh script #2613
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
f728b1a1f8
commit
6d865152df
1 changed files with 1 additions and 9 deletions
10
scripts/dist/install-gpu.sh
vendored
10
scripts/dist/install-gpu.sh
vendored
|
@ -44,13 +44,6 @@ case $DESTARCH in
|
|||
;;
|
||||
esac
|
||||
|
||||
# TODO: Install NVIDIA Drivers from https://developer.download.nvidia.com/compute/cuda/repos/
|
||||
# curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/{DIST}/x86_64/7fa2af80.pub | gpg --dearmor -o /etc/apt/trusted.gpg.d/developer.download.nvidia.com.gpg
|
||||
# add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/{DIST}/x86_64/ /"
|
||||
# curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/{DIST}/x86_64/cuda-{DIST}.pin > /etc/apt/preferences.d/cuda-repository-pin-600
|
||||
# apt-get update
|
||||
# apt-get install libglvnd-dev pkg-config dkms build-essential cuda nvidia-driver-510 nvidia-settings nvidia-utils-510 linux-headers-$(uname -r)
|
||||
|
||||
# shellcheck disable=SC2068
|
||||
for t in ${GPU_DETECTED[@]}; do
|
||||
case $t in
|
||||
|
@ -60,8 +53,7 @@ for t in ${GPU_DETECTED[@]}; do
|
|||
;;
|
||||
|
||||
nvidia)
|
||||
echo "Installing Nvidia Drivers..."
|
||||
apt-get -qq install libcuda1 libnvcuvid1 libnvidia-encode1 nvidia-opencl-icd nvidia-vdpau-driver nvidia-driver-libs nvidia-kernel-dkms libva2 vainfo libva-wayland2
|
||||
echo "NVIDIA Container Toolkit must be installed: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html"
|
||||
;;
|
||||
|
||||
"null")
|
||||
|
|
Loading…
Reference in a new issue