Skip to content

Commit

Permalink
Try to improve things
Browse files Browse the repository at this point in the history
  • Loading branch information
ocaisa committed Oct 10, 2024
1 parent c102313 commit 6534b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 6534b99

Please sign in to comment.