File tree Expand file tree Collapse file tree
scripts/gpu_support/nvidia Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -418,15 +418,8 @@ find_cuda_libraries_on_host() {
418418 for existing_lib in " ${MATCHED_LIBRARIES[@]} " ; do
419419 existing_name=$( basename " $existing_lib " )
420420 if [ " $existing_name " = " $lib_name " ]; then
421- log_verbose " Duplicate library found: $lib_name (existing: $existing_lib , new: $lib_path )"
422- # Prioritize libraries in standard locations if possible
423- if [[ " $lib_path " == " /usr/lib" * || " $lib_path " == " /lib" * ]]; then
424- log_verbose " Prioritizing system library: $lib_path "
425- # Remove the existing entry
426- MATCHED_LIBRARIES=(" ${MATCHED_LIBRARIES[@]/ $existing_lib } " )
427- # Add the new one
428- MATCHED_LIBRARIES+=(" $lib_path " )
429- fi
421+ log_verbose " Duplicate library found: $lib_name (existing: $existing_lib , currently processed: $lib_path )"
422+ log_verbose " Discarting $lib_path "
430423 duplicate_found=1
431424 break
432425 fi
@@ -538,9 +531,7 @@ symlink_mode () {
538531 # and check if the symlink was created successfully
539532 if ! ln -s " $library " .
540533 then
541- echo_yellow " Warning: Failed to create symlink for library $library in $PWD "
542- # Continue instead of fatal_error to make the script more robust
543- continue
534+ fatal_error " Error: Failed to create symlink for library $library in $PWD "
544535 fi
545536 done
546537
You can’t perform that action at this time.
0 commit comments