From 350b22d2bbb8d9aab686a6f6c8a066ce1ddad2f7 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 5 Mar 2024 16:22:33 -0800 Subject: [PATCH] Add Tensorflow 2.16 tested build configurations PiperOrigin-RevId: 613006193 --- site/en/install/source.md | 21 +++++++++++++-------- site/en/install/source_windows.md | 1 + 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/site/en/install/source.md b/site/en/install/source.md index 0c556810fad..765be347f8a 100644 --- a/site/en/install/source.md +++ b/site/en/install/source.md @@ -60,7 +60,7 @@ file. Clang is a C/C++/Objective-C compiler that is compiled in C++ based on LLVM. It is the default compiler to build TensorFlow starting with TensorFlow 2.13. The -current supported version is LLVM/Clang 16. +current supported version is LLVM/Clang 17. [LLVM Debian/Ubuntu nightly packages](https://apt.llvm.org) provide an automatic installation script and packages for manual installation on Linux. Make sure you @@ -68,22 +68,24 @@ run the following command if you manually add llvm apt repository to your package sources:
-sudo apt-get update && sudo apt-get install -y llvm-16 clang-16
+sudo apt-get update && sudo apt-get install -y llvm-17 clang-17
 
+Now that `/usr/lib/llvm-17/bin/clang` is the actual path to clang in this case. + Alternatively, you can download and unpack the pre-built -[Clang + LLVM 16](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.0). +[Clang + LLVM 17](https://github.com/llvm/llvm-project/releases/tag/llvmorg-17.0.2). Below is an example of steps you can take to set up the downloaded Clang + LLVM -16 binaries on Debian/Ubuntu operating systems: +17 binaries on Debian/Ubuntu operating systems: 1. Change to the desired destination directory: `cd ` 1. Load and extract an archive file...(suitable to your architecture):
-    wget https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.0/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
+    wget https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.2/clang+llvm-17.0.2-x86_64-linux-gnu-ubuntu-22.04.tar.xz
     
-    tar -xvf clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
+    tar -xvf clang+llvm-17.0.2-x86_64-linux-gnu-ubuntu-22.04.tar.xz
     
     
@@ -93,10 +95,10 @@ Below is an example of steps you can take to set up the downloaded Clang + LLVM have to replace anything, unless you have a previous installation, in which case you should replace the files:
-    cp -r clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/* /usr
+    cp -r clang+llvm-17.0.2-x86_64-linux-gnu-ubuntu-22.04/* /usr
     
-1. Check the obtained Clang + LLVM 16 binaries version: +1. Check the obtained Clang + LLVM 17 binaries version:
     clang --version
     
@@ -430,6 +432,7 @@ Success: TensorFlow is now installed. + @@ -468,6 +471,7 @@ Success: TensorFlow is now installed.
VersionPython versionCompilerBuild tools
tensorflow-2.16.13.9-3.12Clang 17.0.1Bazel 6.5.0
tensorflow-2.15.03.9-3.11Clang 16.0.0Bazel 6.1.0
tensorflow-2.14.03.9-3.11Clang 16.0.0Bazel 6.1.0
tensorflow-2.13.03.8-3.11Clang 16.0.0Bazel 5.3.0
+ @@ -508,6 +512,7 @@ Success: TensorFlow is now installed.
VersionPython versionCompilerBuild toolscuDNNCUDA
tensorflow-2.16.13.9-3.12Clang 17.0.1Bazel 6.5.08.912.3
tensorflow-2.15.03.9-3.11Clang 16.0.0Bazel 6.1.08.912.2
tensorflow-2.14.03.9-3.11Clang 16.0.0Bazel 6.1.08.711.8
tensorflow-2.13.03.8-3.11Clang 16.0.0Bazel 5.3.08.611.8
+ diff --git a/site/en/install/source_windows.md b/site/en/install/source_windows.md index 758e5dbea45..7a600947ad4 100644 --- a/site/en/install/source_windows.md +++ b/site/en/install/source_windows.md @@ -309,6 +309,7 @@ Note: Starting in TF 2.11, CUDA build is not supported for Windows. For using Te
VersionPython versionCompilerBuild tools
tensorflow-2.16.13.9-3.12Clang from xcode 13.6Bazel 6.5.0
tensorflow-2.15.03.9-3.11Clang from xcode 10.15Bazel 6.1.0
tensorflow-2.14.03.9-3.11Clang from xcode 10.15Bazel 6.1.0
tensorflow-2.13.03.8-3.11Clang from xcode 10.15Bazel 5.3.0
+
VersionPython versionCompilerBuild tools
tensorflow-2.16.13.9-3.12MSVC 2019Bazel 6.5.0
tensorflow-2.15.03.9-3.11MSVC 2019Bazel 6.1.0
tensorflow-2.14.03.9-3.11MSVC 2019Bazel 6.1.0
tensorflow-2.12.03.8-3.11MSVC 2019Bazel 5.3.0