@@ -60,30 +60,32 @@ file.
60
60
61
61
Clang is a C/C++/Objective-C compiler that is compiled in C++ based on LLVM. It
62
62
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 .
64
64
65
65
[ LLVM Debian/Ubuntu nightly packages] ( https://apt.llvm.org ) provide an automatic
66
66
installation script and packages for manual installation on Linux. Make sure you
67
67
run the following command if you manually add llvm apt repository to your
68
68
package sources:
69
69
70
70
<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 >
72
72
</pre >
73
73
74
+ Now that ` /usr/lib/llvm-17/bin/clang ` is the actual path to clang in this case.
75
+
74
76
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 ) .
76
78
77
79
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:
79
81
80
82
1 . Change to the desired destination directory: ` cd <desired directory> `
81
83
82
84
1 . Load and extract an archive file...(suitable to your architecture):
83
85
<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
85
87
</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
87
89
</code >
88
90
</pre >
89
91
@@ -93,10 +95,10 @@ Below is an example of steps you can take to set up the downloaded Clang + LLVM
93
95
have to replace anything, unless you have a previous installation, in which
94
96
case you should replace the files:
95
97
<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 >
97
99
</pre >
98
100
99
- 1 . Check the obtained Clang + LLVM 16 binaries version:
101
+ 1 . Check the obtained Clang + LLVM 17 binaries version:
100
102
<pre class =" prettyprint lang-bsh " >
101
103
<code class =" devsite-terminal " >clang --version</code >
102
104
</pre >
@@ -430,6 +432,7 @@ Success: TensorFlow is now installed.
430
432
431
433
<table >
432
434
<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 >
433
436
<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 >
434
437
<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 >
435
438
<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.
468
471
469
472
<table >
470
473
<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 >
471
475
<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 >
472
476
<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 >
473
477
<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.
508
512
509
513
<table >
510
514
<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 >
511
516
<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 >
512
517
<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 >
513
518
<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