We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1748ee6 commit 695c1bcCopy full SHA for 695c1bc
1 file changed
tensorflow_cc/cmake/build_tensorflow.sh.in
@@ -56,8 +56,8 @@ if [ "$cuda_allowed" == true ] && [ "$cuda_available" == true ]; then
56
export TF_CUDA_COMPUTE_CAPABILITIES=${TF_CUDA_COMPUTE_CAPABILITIES:-"3.5,7.0"} # default from configure.py
57
export TF_CUDA_PATHS=${TF_CUDA_PATHS:-"/opt/cuda,/usr/local/cuda,/usr/local,/usr/cuda,/usr"}
58
export TF_CUDA_VERSION="$(nvcc --version | sed -n 's/^.*release \(.*\),.*/\1/p')"
59
- export TF_NCCL_VERSION="$(find /opt /usr -name 'libnccl.so.*' | tail -n1 | sed -r 's/^.*\.so\.//')"
60
- export TF_CUDNN_VERSION="$(find /opt /usr -name 'libcudnn.so.*' | tail -n1 | sed -r 's/^.*\.so\.//')"
+ export TF_NCCL_VERSION="$(find /opt /usr -name 'libnccl.so.*' -path '*/cuda*' | tail -n1 | sed -r 's/^.*\.so\.//')"
+ export TF_CUDNN_VERSION="$(find /opt /usr -name 'libcudnn.so.*' -path '*/cuda*' | tail -n1 | sed -r 's/^.*\.so\.//')"
61
62
# choose the right version of CUDA compiler
63
if [ -z "$GCC_HOST_COMPILER_PATH" ]; then
0 commit comments