From f02766be6923809e96913b9cabce241ddc0f02ef Mon Sep 17 00:00:00 2001 From: taoboyang Date: Mon, 5 Aug 2024 12:08:05 +0800 Subject: [PATCH] update cuda backend from 11.8 to 12.2 --- scripts/build_ffmpeg.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build_ffmpeg.sh b/scripts/build_ffmpeg.sh index 5e5e0ef2..c6a851de 100755 --- a/scripts/build_ffmpeg.sh +++ b/scripts/build_ffmpeg.sh @@ -228,12 +228,14 @@ function install_cuda_linux() { apt-get -y install cuda-toolkit-11-8 elif [[ ${NAME} =~ "AlmaLinux" ]] && [[ ${VERSION_ID} == "8.10" ]] then + original_ld_lib_path=$LD_LIBRARY_PATH + unset LD_LIBRARY_PATH dnf install epel-release -y dnf update -y yum config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo dnf install kernel-devel -y - dnf install cuda-11-8 -y - + dnf install cuda-12-2 -y + export LD_LIBRARY_PATH=$original_ld_lib_path fi export PATH=${PATH}:/usr/local/cuda/bin cd -