Skip to content

Commit c8a1936

Browse files
authored
Merge pull request #12510 from BKitor/fix-cuda-symlink-check
update libcuda.so find command to follow symlinks
2 parents 37a7896 + f06c03c commit c8a1936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/opal_check_cuda.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ AC_ARG_WITH([cuda-libdir],
5959
[Search for CUDA libraries in DIR])],
6060
[],
6161
[AS_IF([test -d "$with_cuda"],
62-
[with_cuda_libdir=$(dirname $(find $with_cuda -name libcuda.so 2> /dev/null) 2> /dev/null)],
63-
[with_cuda_libdir=$(dirname $(find /usr/local/cuda -name libcuda.so 2> /dev/null) 2> /dev/null)])
62+
[with_cuda_libdir=$(dirname $(find -H $with_cuda -name libcuda.so 2> /dev/null) 2> /dev/null)],
63+
[with_cuda_libdir=$(dirname $(find -H /usr/local/cuda -name libcuda.so 2> /dev/null) 2> /dev/null)])
6464
])
6565
6666
# Note that CUDA support is off by default. To turn it on, the user has to

0 commit comments

Comments
 (0)