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"
15
15
echo " PYTHON_VERSION: $PYTHON_VERSION "
16
16
echo " CUDA_VERSION: $CUDA_VERSION "
17
17
18
- # Install system dependencies including CUDA, clang, and clangd
18
+ # Install system dependencies
19
19
echo " Installing system dependencies..."
20
20
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
22
40
23
41
# Verify clang installation
24
42
echo " Verifying clang installation..."
You can’t perform that action at this time.
0 commit comments