@@ -60,30 +60,32 @@ file.
6060
6161Clang is a C/C++/Objective-C compiler that is compiled in C++ based on LLVM. It
6262is 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
6666installation script and packages for manual installation on Linux. Make sure you
6767run the following command if you manually add llvm apt repository to your
6868package 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+
7476Alternatively, 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
7779Below 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
80821 . Change to the desired destination directory: ` cd <desired directory> `
8183
82841 . 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 >
0 commit comments