Skip to content

Commit 2bcfa24

Browse files
Minor additional step-by-step instruction how to setup downloaded pre-built Clang+LLVM-16 binaries during the building TensorFlow from source.
PiperOrigin-RevId: 570107458
1 parent c40e0e8 commit 2bcfa24

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

site/en/install/source.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,32 @@ package sources:
7272
</pre>
7373

7474
Alternatively, you can download and unpack the pre-built
75-
[Clang+LLVM-16 binaries](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.0).
75+
[Clang + LLVM 16](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.0).
76+
77+
Below is an example of steps you can take to set up the downloaded
78+
Clang + LLVM 16 binaries:
79+
80+
1. Change to the desired destination directory:
81+
```cd <desired directory>```
82+
83+
2. Load and extract an archive file...(suitable to your architecture):
84+
<pre class="prettyprint lang-bsh">
85+
<code class="devsite-terminal">
86+
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
87+
</code>
88+
<code class="devsite-terminal">tar -xvf clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
89+
</code>
90+
</pre>
91+
92+
3. Check the obtained Clang + LLVM 16 binaries version:
93+
<pre class="prettyprint lang-bsh">
94+
<code class="devsite-terminal">
95+
./clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang-16 --version </code>
96+
</pre>
97+
98+
4. Directory `/clang+llvm-16.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang-16` is
99+
the actual path to your new clang. You can run the `./configure` script or
100+
manually set environment variables `CC` and `BAZEL_COMPILER` to this path.
76101

77102
### Install GPU support (optional, Linux only)
78103

0 commit comments

Comments
 (0)