Skip to content

Commit

Permalink
[doc] Update prebuilt llvm15 links in dev install doc (taichi-dev#6648)
Browse files Browse the repository at this point in the history
Issue: taichi-dev#6447 

### Brief Summary
Updating links in dev install doc. 

Nit: we still depend on clang-10/clang-11 to produce runtime.bc files
and that part will be updated once those are cleaned up.
  • Loading branch information
ailzhang authored Nov 18, 2022
1 parent db6ab0d commit 0441864
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ jobs:

- name: Build & Run C-API Headless Demos (Desktop)
run: |
[[ ${{needs.check_files.outputs.run_job}} == false ]] && exit 0
. .github/workflows/scripts/common-utils.sh
chown -R 1000:1000 .
ci-docker-run-gpu --name taichi-test-capi-headless-demo-desktop \
Expand Down
35 changes: 17 additions & 18 deletions docs/lang/articles/contribution/dev_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,32 +161,31 @@ Some Linux distributions may require additional packages to build Taichi. Keep a

#### Install pre-built, customized LLVM binaries

We provide pre-built, customized LLVM binaries. For now, Taichi supports LLVM 10.0.0 only.
We provide pre-built, customized LLVM binaries. For now, Taichi supports LLVM 15 only.

1. Download and install customized binaries from the following list per your system environment:

````mdx-code-block
<Tabs
defaultValue="llvm_linux"
values={[
{label: 'LLVM 10.0.0 for Linux', value: 'llvm_linux'},
{label: 'LLVM 10.0.0 for macOS (without M1 chip)', value: 'llvm_macos_sans_m1'},
{label: 'LLVM 10.0.0 for macOS (with M1 chip)', value: 'llvm_macos_m1'},
{label: 'LLVM 10.0.0 for Windows', value: 'llvm_windows'},
{label: 'LLVM 15 for Linux', value: 'llvm_linux'},
{label: 'LLVM 15 for macOS (without M1 chip)', value: 'llvm_macos_sans_m1'},
{label: 'LLVM 15 for macOS (with M1 chip)', value: 'llvm_macos_m1'},
{label: 'LLVM 15 for Windows', value: 'llvm_windows'},
]}>
<TabItem value="llvm_linux">
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm10_linux_patch2/taichi-llvm-10.0.0-linux.zip">LLVM 10.0.0 for Linux</a>
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm15/taichi-llvm-15-linux.zip">LLVM 15.0.0 for Linux</a>
</TabItem>
<TabItem value="llvm_macos_sans_m1">
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm10/taichi-llvm-10.0.0-macos.zip">LLVM 10.0.0 for macOS (without M1 chip)</a>
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm15/llvm-15-mac10.15.zip">LLVM 15.0.0 for macOS (without M1 chip)</a>
</TabItem>
<TabItem value="llvm_macos_m1">
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm10_m1/llvm-10.0.0-m1.zip">LLVM 10.0.0 for macOS (with M1 chip)</a>
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm15/taichi-llvm-15-m1.zip">LLVM 15.0.0 for macOS (with M1 chip)</a>
</TabItem>
<TabItem value="llvm_windows">
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm10/taichi-llvm-10.0.0-msvc2019.zip">LLVM 10.0.0 for Windows MSVC 2019</a>
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm10_msvc2022/taichi-llvm-10.0.0-msvc2022.zip">LLVM 10.0.0 for Windows MSVC 2022</a>
<a href="https://github.com/taichi-dev/taichi_assets/releases/download/llvm15/taichi-llvm-15.0.0-msvc2019.zip">LLVM 15.0.0 for Windows MSVC 2019</a>
</TabItem>
</Tabs>
Expand All @@ -204,9 +203,9 @@ We provide pre-built, customized LLVM binaries. For now, Taichi supports LLVM 10
<TabItem value="linux">
1. Add LLVM to your PATH variable:
1. Set `LLVM_DIR` environment variable:
```
echo "export PATH=<PATH_TO_LLVM_FOLDER>/bin:\$PATH" >> ~/.bashrc
echo "export LLVM_DIR=<PATH_TO_LLVM_FOLDER>" >> ~/.bashrc
```
2. Update your path for the remainder of the session:
Expand All @@ -226,9 +225,9 @@ Add an environment variable `LLVM_DIR` with value `<Path to the extracted LLVM b
````

<details>
<summary><font color="#006284">Build LLVM 10.0.0 from source</font></summary>
<summary><font color="#006284">Build LLVM 15.0.0 from source</font></summary>

We provide instructions here if you need to build LLVM 10.0.0 from source.
We provide instructions here if you need to build LLVM 15.0.0 from source.

````mdx-code-block
<Tabs
Expand All @@ -241,11 +240,11 @@ We provide instructions here if you need to build LLVM 10.0.0 from source.
<TabItem value="linux">
```shell
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/llvm-10.0.0.src.tar.xz
wget https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-15.0.5.tar.gz
tar xvJf llvm-10.0.0.src.tar.xz
tar zxvf llvmorg-15.0.5.tar.gz
cd llvm-10.0.0.src
cd llvm-project-llvmorg-15.0.5/llvm
mkdir build
Expand All @@ -265,7 +264,7 @@ sudo make install
# Check your LLVM installation
llvm-config --version # You should get 10.0.0
llvm-config --version # You should get 15.0.5
```
</TabItem>
Expand Down

0 comments on commit 0441864

Please sign in to comment.