You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tensorflow 2.12 bazel failed!Cuda11.2+cuDNN8.1+Tensorrt7.2 under Ubuntu2004 #60362
And,I sucessed to build the latest 2.12 version with Cuda11.8+cuDNN8.6+Tensorrt8.5.2.2+JAX+Flax under Ubuntu2004 at last.
you will continue to meet new "DataType kFP8" error as shown in the following information if you use the tensorrt version between 8.5.3 and 8.6.0 of TensorRT. (API Reference: 8.5.3, 8.6.0)
Execution platform: @local_execution_config_platform//:platform
tensorflow/compiler/tf2tensorrt/convert/weights.cc: In member function ‘size_t tensorflow::tensorrt::convert::TRT_ShapedWeights::size_bytes() const’:
tensorflow/compiler/tf2tensorrt/convert/weights.cc:61:10: error: enumeration value ‘kFP8’ not handled in switch [-Werror=switch]
61 | switch (type_) {
| ^
cc1plus: some warnings being treated as errors
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 1276.053s, Critical Path: 83.16s
INFO: 8084 processes: 3883 internal, 4201 local.
FAILED: Build did NOT complete successfully
Activity
SweetVishnya commentedon Apr 20, 2023
@mihaimaruseac, same here. I am trying to build TensorFlow 2.12 in docker:
mihaimaruseac commentedon Apr 20, 2023
When building from master, please always give the commit, given TF moves fast forward.
Does it reproduce if you switch to a newer commit?
mihaimaruseac commentedon Apr 20, 2023
Sorry, I misread the link to the
.bazelrcin master branch.Can you try a
bazel clean --expungeand then build again?Adding @angerson and @MichaelHudgins for the Docker stuff too.
SweetVishnya commentedon Apr 20, 2023
@mihaimaruseac, TensorFlow fails to build from
r2.12branch. I haven't tried master, because I try to locally rebuild 2.12 release.I'll try it.
SweetVishnya commentedon Apr 20, 2023
@mihaimaruseac, it didn't help. The same error:
mihaimaruseac commentedon Apr 20, 2023
Could it be because 2.12 uses cuDNN 8.6, Cuda 11.8?
SweetVishnya commentedon Apr 20, 2023
Hmm, maybe I am using the wrong docker container. What's the right docker container with fresh cuda to build 2.12?
mihaimaruseac commentedon Apr 20, 2023
Tagging @angerson
SweetVishnya commentedon Apr 20, 2023
Now I am trying the following docker (at least it has correct CUDA version):
MichaelHudgins commentedon Apr 20, 2023
As for docker containers using the tensorflow/build ones would be the correct ones. See: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/tf_sig_build_dockerfiles.
I agree that it likely is the mismatch on the original issue as well. The root level .bazelrc should get an update in the next few days as clang is migrated. Until then https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/tf_sig_build_dockerfiles/devel.usertools/gpu_gcc.bazelrc has the bazelrc values being used in TF's CI.
angerson commentedon Apr 20, 2023
Thanks Michael & Mihai. Those instructions Michael linked should work.
I'll have to look into updating the https://www.tensorflow.org/install/source#docker_linux_builds docs. I guess they never got changed, as the SIG Build containers were not initially planned to be official.
SweetVishnya commentedon Apr 21, 2023
I succeeded building TensorFlow 2.12 in
tensorflow/build:2.12-python3.8docker.Shuolongbj commentedon Apr 21, 2023
Thank you all. @SweetVishnya @angerson @MichaelHudgins @mihaimaruseac

The relevant documents build from source have been updated to the latest version.well done!
BTW:
bazel.rc TensorRT 7 for CUDA 11.1 is compatible with CUDA 11.2
CUDA 11.2 must be 11.2 update 1,not 11.2 update 2, refer to here tensorrt-723/support-matrix
nvrtc is deliver inside the CUDA toolkit, you can also install it separate, I find the links in:
ubuntu1804
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-nvrtc-11-1_11.1.105-1_amd64.deb
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-nvrtc-dev-11-1_11.1.105-1_amd64.deb
ubuntu2004
https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64/cuda-nvrtc-11-1_11.1.105-1_amd64.deb
https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64/cuda-nvrtc-dev-11-1_11.1.105-1_amd64.deb
ubuntu2204
https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2204/x86_64/cuda-nvrtc-11-1_11.1.105-1_amd64.deb https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2204/x86_64/cuda-nvrtc-dev-11-1_11.1.105-1_amd64.deb
mihaimaruseac commentedon Apr 21, 2023
In this case, we can close this?
google-ml-butler commentedon Apr 21, 2023
Are you satisfied with the resolution of your issue?
Yes
No
Shuolongbj commentedon Apr 22, 2023
And,I sucessed to build the latest 2.12 version with Cuda11.8+cuDNN8.6+Tensorrt8.5.2.2+JAX+Flax under Ubuntu2004 at last.
you will continue to meet new "DataType kFP8" error as shown in the following information if you use the tensorrt version between 8.5.3 and 8.6.0 of TensorRT. (API Reference: 8.5.3, 8.6.0)
Execution platform: @local_execution_config_platform//:platform
tensorflow/compiler/tf2tensorrt/convert/weights.cc: In member function ‘size_t tensorflow::tensorrt::convert::TRT_ShapedWeights::size_bytes() const’:
tensorflow/compiler/tf2tensorrt/convert/weights.cc:61:10: error: enumeration value ‘kFP8’ not handled in switch [-Werror=switch]
61 | switch (type_) {
| ^
cc1plus: some warnings being treated as errors
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 1276.053s, Critical Path: 83.16s
INFO: 8084 processes: 3883 internal, 4201 local.
FAILED: Build did NOT complete successfully
google-ml-butler commentedon Apr 23, 2023
Are you satisfied with the resolution of your issue?
Yes
No