Skip to content

Commit 350b22d

Browse files
Add Tensorflow 2.16 tested build configurations
PiperOrigin-RevId: 613006193
1 parent 0656582 commit 350b22d

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

site/en/install/source.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,30 +60,32 @@ file.
6060

6161
Clang is a C/C++/Objective-C compiler that is compiled in C++ based on LLVM. It
6262
is the default compiler to build TensorFlow starting with TensorFlow 2.13. The
63-
current supported version is LLVM/Clang 16.
63+
current supported version is LLVM/Clang 17.
6464

6565
[LLVM Debian/Ubuntu nightly packages](https://apt.llvm.org) provide an automatic
6666
installation script and packages for manual installation on Linux. Make sure you
6767
run the following command if you manually add llvm apt repository to your
6868
package sources:
6969

7070
<pre class="prettyprint lang-bsh">
71-
<code class="devsite-terminal">sudo apt-get update && sudo apt-get install -y llvm-16 clang-16</code>
71+
<code class="devsite-terminal">sudo apt-get update && sudo apt-get install -y llvm-17 clang-17</code>
7272
</pre>
7373

74+
Now that `/usr/lib/llvm-17/bin/clang` is the actual path to clang in this case.
75+
7476
Alternatively, you can download and unpack the pre-built
75-
[Clang + LLVM 16](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.0).
77+
[Clang + LLVM 17](https://github.com/llvm/llvm-project/releases/tag/llvmorg-17.0.2).
7678

7779
Below is an example of steps you can take to set up the downloaded Clang + LLVM
78-
16 binaries on Debian/Ubuntu operating systems:
80+
17 binaries on Debian/Ubuntu operating systems:
7981

8082
1. Change to the desired destination directory: `cd <desired directory>`
8183

8284
1. Load and extract an archive file...(suitable to your architecture):
8385
<pre class="prettyprint lang-bsh">
84-
<code class="devsite-terminal">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
86+
<code class="devsite-terminal">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
8587
</code>
86-
<code class="devsite-terminal">tar -xvf clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
88+
<code class="devsite-terminal">tar -xvf clang+llvm-17.0.2-x86_64-linux-gnu-ubuntu-22.04.tar.xz
8789
</code>
8890
</pre>
8991

@@ -93,10 +95,10 @@ Below is an example of steps you can take to set up the downloaded Clang + LLVM
9395
have to replace anything, unless you have a previous installation, in which
9496
case you should replace the files:
9597
<pre class="prettyprint lang-bsh">
96-
<code class="devsite-terminal">cp -r clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/* /usr</code>
98+
<code class="devsite-terminal">cp -r clang+llvm-17.0.2-x86_64-linux-gnu-ubuntu-22.04/* /usr</code>
9799
</pre>
98100

99-
1. Check the obtained Clang + LLVM 16 binaries version:
101+
1. Check the obtained Clang + LLVM 17 binaries version:
100102
<pre class="prettyprint lang-bsh">
101103
<code class="devsite-terminal">clang --version</code>
102104
</pre>
@@ -430,6 +432,7 @@ Success: TensorFlow is now installed.
430432

431433
<table>
432434
<tr><th>Version</th><th>Python version</th><th>Compiler</th><th>Build tools</th></tr>
435+
<tr><td>tensorflow-2.16.1</td><td>3.9-3.12</td><td>Clang 17.0.1</td><td>Bazel 6.5.0</td></tr>
433436
<tr><td>tensorflow-2.15.0</td><td>3.9-3.11</td><td>Clang 16.0.0</td><td>Bazel 6.1.0</td></tr>
434437
<tr><td>tensorflow-2.14.0</td><td>3.9-3.11</td><td>Clang 16.0.0</td><td>Bazel 6.1.0</td></tr>
435438
<tr><td>tensorflow-2.13.0</td><td>3.8-3.11</td><td>Clang 16.0.0</td><td>Bazel 5.3.0</td></tr>
@@ -468,6 +471,7 @@ Success: TensorFlow is now installed.
468471

469472
<table>
470473
<tr><th>Version</th><th>Python version</th><th>Compiler</th><th>Build tools</th><th>cuDNN</th><th>CUDA</th></tr>
474+
<tr><td>tensorflow-2.16.1</td><td>3.9-3.12</td><td>Clang 17.0.1</td><td>Bazel 6.5.0</td><td>8.9</td><td>12.3</td></tr>
471475
<tr><td>tensorflow-2.15.0</td><td>3.9-3.11</td><td>Clang 16.0.0</td><td>Bazel 6.1.0</td><td>8.9</td><td>12.2</td></tr>
472476
<tr><td>tensorflow-2.14.0</td><td>3.9-3.11</td><td>Clang 16.0.0</td><td>Bazel 6.1.0</td><td>8.7</td><td>11.8</td></tr>
473477
<tr><td>tensorflow-2.13.0</td><td>3.8-3.11</td><td>Clang 16.0.0</td><td>Bazel 5.3.0</td><td>8.6</td><td>11.8</td></tr>
@@ -508,6 +512,7 @@ Success: TensorFlow is now installed.
508512

509513
<table>
510514
<tr><th>Version</th><th>Python version</th><th>Compiler</th><th>Build tools</th></tr>
515+
<tr><td>tensorflow-2.16.1</td><td>3.9-3.12</td><td>Clang from xcode 13.6</td><td>Bazel 6.5.0</td></tr>
511516
<tr><td>tensorflow-2.15.0</td><td>3.9-3.11</td><td>Clang from xcode 10.15</td><td>Bazel 6.1.0</td></tr>
512517
<tr><td>tensorflow-2.14.0</td><td>3.9-3.11</td><td>Clang from xcode 10.15</td><td>Bazel 6.1.0</td></tr>
513518
<tr><td>tensorflow-2.13.0</td><td>3.8-3.11</td><td>Clang from xcode 10.15</td><td>Bazel 5.3.0</td></tr>

site/en/install/source_windows.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ Note: Starting in TF 2.11, CUDA build is not supported for Windows. For using Te
309309

310310
<table>
311311
<tr><th>Version</th><th>Python version</th><th>Compiler</th><th>Build tools</th></tr>
312+
<tr><td>tensorflow-2.16.1</td><td>3.9-3.12</td><td>MSVC 2019</td><td>Bazel 6.5.0</td></tr>
312313
<tr><td>tensorflow-2.15.0</td><td>3.9-3.11</td><td>MSVC 2019</td><td>Bazel 6.1.0</td></tr>
313314
<tr><td>tensorflow-2.14.0</td><td>3.9-3.11</td><td>MSVC 2019</td><td>Bazel 6.1.0</td></tr>
314315
<tr><td>tensorflow-2.12.0</td><td>3.8-3.11</td><td>MSVC 2019</td><td>Bazel 5.3.0</td></tr>

0 commit comments

Comments
 (0)