Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to compile with cuda11.6. Is this version still incompatible with it? #63

Open
QuinVIVER opened this issue May 22, 2022 · 0 comments

Comments

@QuinVIVER
Copy link

System information

  • ubuntu 20.04
  • TensorFlow installed from (source or binary): source
  • TensorFlow version: r1.15.5+nv22.04
  • Python version: python3.9
  • Bazel version (if compiling from source): 0.25.3
  • GCC/Compiler version (if compiling from source): 7.5.0
  • CUDA/cuDNN version: cuda11.6.55
  • GPU model and memory: 1080ti(11g)

I follow exactly the instruction and still fails to compile it on cuda11.6, here's the command I run and the log.

export TF_NEED_CUDA=1
export TF_NEED_TENSORRT=0
export TF_CUDA_PATHS="/usr/include,/usr/lib/x86_64-linux-gnu,/usr/local/cuda/include,/usr/local/cuda/lib64,/usr/local/cuda/bin,/usr/local/cuda"
export TF_CUDA_VERSION=11.6
export TF_CUBLAS_VERSION=11
export TF_CUDNN_VERSION=8
export TF_NCCL_VERSION=2
export TF_CUDA_COMPUTE_CAPABILITIES="6.0,6.1,7.0,7.5,8.0,8.6"
export TF_ENABLE_XLA=1
export TF_NEED_HDFS=0
export CC_OPT_FLAGS="-march=native -mtune=native"
yes "" | ./configure

ERROR: Skipping 'tensorflow/tools/pip_package:build_pip_package': error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 1266
_create_local_cuda_repository(repository_ctx)
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 1033, in _create_local_cuda_repository
_find_libs(repository_ctx, cuda_config)
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 615, in _find_libs
_find_cuda_lib("cudart", repository_ctx, cpu_value, c..."], ...)
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 589, in _find_cuda_lib
find_lib(repository_ctx, [("%s/%s" % (based...))], ...)))
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 566, in find_lib
auto_configure_fail(("No library found under: " + ",...)))
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 325, in auto_configure_fail
fail(("\n%sCuda Configuration Error:%...)))

Cuda Configuration Error: No library found under: /usr/local/cuda/lib64/libcudart.so.11.6
WARNING: Target pattern parsing failed.
ERROR: error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 1266
_create_local_cuda_repository(repository_ctx)
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 1033, in _create_local_cuda_repository
_find_libs(repository_ctx, cuda_config)
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 615, in _find_libs
_find_cuda_lib("cudart", repository_ctx, cpu_value, c..."], ...)
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 589, in _find_cuda_lib
find_lib(repository_ctx, [("%s/%s" % (based...))], ...)))
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 566, in find_lib
auto_configure_fail(("No library found under: " + ",...)))
File "/home/mist/tensorflow/third_party/gpus/cuda_configure.bzl", line 325, in auto_configure_fail
fail(("\n%sCuda Configuration Error:%...)))

Cuda Configuration Error: No library found under: /usr/local/cuda/lib64/libcudart.so.11.6

this Error is so confusing to me and seems such problem exist for cuda10.1 before.

@QuinVIVER QuinVIVER changed the title failed to compile with cuda11.6. Is this version still uncompatible with it? failed to compile with cuda11.6. Is this version still incompatible with it? May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant