Skip to content

Commit 4ebef39

Browse files
authored
Merge pull request #13421 from bosilca/topic/single_cuda_library
Only pick one CUDA shared library
2 parents 3dd3dbf + c7e27b9 commit 4ebef39

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
@@ -60,8 +60,8 @@ AC_ARG_WITH([cuda-libdir],
6060
[Search for CUDA libraries in DIR])],
6161
[],
6262
[AS_IF([test -d "$with_cuda"],
63-
[with_cuda_libdir=$(dirname $(find -H $with_cuda -name libcuda.so 2> /dev/null) 2> /dev/null)],
64-
[with_cuda_libdir=$(dirname $(find -H /usr/local/cuda -name libcuda.so 2> /dev/null) 2> /dev/null)])
63+
[with_cuda_libdir=$(dirname $(find -H $with_cuda -name libcuda.so 2> /dev/null | head -n 1) 2> /dev/null)],
64+
[with_cuda_libdir=$(dirname $(find -H /usr/local/cuda -name libcuda.so 2> /dev/null) 2> /dev/null | head -n 1)])
6565
])
6666
6767
# Note that CUDA support is off by default. To turn it on, the user has to

0 commit comments

Comments
 (0)