Skip to content

Commit

Permalink
Merge pull request open-mpi#12510 from BKitor/fix-cuda-symlink-check
Browse files Browse the repository at this point in the history
update libcuda.so find command to follow symlinks
  • Loading branch information
bosilca committed May 2, 2024
2 parents 37a7896 + f06c03c commit c8a1936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/opal_check_cuda.m4
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ AC_ARG_WITH([cuda-libdir],
[Search for CUDA libraries in DIR])],
[],
[AS_IF([test -d "$with_cuda"],
[with_cuda_libdir=$(dirname $(find $with_cuda -name libcuda.so 2> /dev/null) 2> /dev/null)],
[with_cuda_libdir=$(dirname $(find /usr/local/cuda -name libcuda.so 2> /dev/null) 2> /dev/null)])
[with_cuda_libdir=$(dirname $(find -H $with_cuda -name libcuda.so 2> /dev/null) 2> /dev/null)],
[with_cuda_libdir=$(dirname $(find -H /usr/local/cuda -name libcuda.so 2> /dev/null) 2> /dev/null)])
])
# Note that CUDA support is off by default. To turn it on, the user has to
Expand Down

0 comments on commit c8a1936

Please sign in to comment.