We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3dd3dbf + c7e27b9 commit 4ebef39Copy full SHA for 4ebef39
config/opal_check_cuda.m4
@@ -60,8 +60,8 @@ AC_ARG_WITH([cuda-libdir],
60
[Search for CUDA libraries in DIR])],
61
[],
62
[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)])
+ [with_cuda_libdir=$(dirname $(find -H $with_cuda -name libcuda.so 2> /dev/null | head -n 1) 2> /dev/null)],
+ [with_cuda_libdir=$(dirname $(find -H /usr/local/cuda -name libcuda.so 2> /dev/null) 2> /dev/null | head -n 1)])
65
])
66
67
# Note that CUDA support is off by default. To turn it on, the user has to
0 commit comments