From 6534b99d2c5a78528a872f6787b991ba7a69abc6 Mon Sep 17 00:00:00 2001 From: Alan O'Cais Date: Thu, 10 Oct 2024 12:03:44 +0200 Subject: [PATCH] Try to improve things --- scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh b/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh index 5fb3bfc2ba..ce3d75ab4a 100755 --- a/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh +++ b/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh @@ -233,7 +233,7 @@ if [ "$LD_PRELOAD_MODE" -eq 1 ]; then # Also prepare compat only libraries for the short list for item in "${cuda_compat_nvlib_list[@]}"; do # Check if the current item is a substring of $library - if [[ "$realpath_library" == "$item"* ]]; then + if [[ "$library" == "$item"* ]]; then echo "Match found for $item for CUDA compat libraries" if [[ ! " ${compat_filtered_libraries[@]} " =~ " $realpath_library " ]]; then compat_filtered_libraries+=("$realpath_library") @@ -272,7 +272,7 @@ if [ "$LD_PRELOAD_MODE" -eq 1 ]; then # Also prepare compat only libraries for the short list for item in "${cuda_compat_nvlib_list[@]}"; do # Check if the current item is a substring of $library - if [[ "$realpath_library" == "$item"* ]]; then + if [[ "$library" == "$item"* ]]; then echo "Match found for $item for CUDA compat libraries" if [[ ! " ${compat_filtered_libraries[@]} " =~ " $realpath_library " ]]; then compat_filtered_libraries+=("$realpath_library")