Skip to content

Commit 98b7a98

Browse files
committed
use llvm 17
1 parent 15226ba commit 98b7a98

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.ci/setup.sh

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,28 @@ echo "CONDA_ENV: $CONDA_ENV"
1515
echo "PYTHON_VERSION: $PYTHON_VERSION"
1616
echo "CUDA_VERSION: $CUDA_VERSION"
1717

18-
# Install system dependencies including CUDA, clang, and clangd
18+
# Install system dependencies
1919
echo "Installing system dependencies..."
2020
sudo apt-get update
21-
sudo apt-get install -y cuda-toolkit-12.8 clang clangd libstdc++6
21+
22+
# Add LLVM official repository for newer clangd
23+
echo "Adding LLVM official repository..."
24+
wget https://apt.llvm.org/llvm.sh
25+
chmod +x llvm.sh
26+
sudo ./llvm.sh 17
27+
28+
# Install clang and clangd first
29+
echo "Installing clang and clangd..."
30+
sudo apt-get install -y clang-17 clangd-17
31+
32+
# Set up clang alternatives
33+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100
34+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100
35+
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-17 100
36+
37+
# Install CUDA and libstdc++ after clang is set up
38+
echo "Installing CUDA and libstdc++..."
39+
sudo apt-get install -y cuda-toolkit-12.8 libstdc++6
2240

2341
# Verify clang installation
2442
echo "Verifying clang installation..."

0 commit comments

Comments
 (0)