File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,28 @@ echo "CONDA_ENV: $CONDA_ENV"
1515echo " PYTHON_VERSION: $PYTHON_VERSION "
1616echo " CUDA_VERSION: $CUDA_VERSION "
1717
18- # Install system dependencies including CUDA, clang, and clangd
18+ # Install system dependencies
1919echo " Installing system dependencies..."
2020sudo 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
2442echo " Verifying clang installation..."
You can’t perform that action at this time.
0 commit comments