Skip to content

Commit a12e740

Browse files
committed
use clangd
1 parent 9bd4596 commit a12e740

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.ci/install-triton.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,15 @@ pip install ninja cmake wheel pybind11
5656
echo "Installing Triton requirements..."
5757
pip install -r python/requirements.txt
5858

59-
# Install Triton in editable mode
60-
echo "Installing Triton in editable mode..."
59+
# Set environment to use clang compiler for faster compilation
60+
echo "Setting up clang compiler for faster compilation..."
61+
export CC=clang
62+
export CXX=clang++
63+
echo "Using CC: $CC"
64+
echo "Using CXX: $CXX"
65+
66+
# Install Triton in editable mode with clang
67+
echo "Installing Triton in editable mode with clang..."
6168
pip install -e .
6269

6370
# Verify Triton installation

.ci/setup.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ echo "CONDA_ENV: $CONDA_ENV"
1515
echo "PYTHON_VERSION: $PYTHON_VERSION"
1616
echo "CUDA_VERSION: $CUDA_VERSION"
1717

18-
# Update system libstdc++ to support newer C++ features
19-
echo "Updating system libstdc++..."
18+
# Install clang and clangd for faster compilation
19+
echo "Installing clang and clangd for faster compilation..."
2020
sudo apt-get update
21-
sudo apt-get install -y gcc-12 g++-12 libstdc++6
22-
# print strings of libstdc++6
23-
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX | tail -10
21+
sudo apt-get install -y clang clangd libstdc++6
22+
23+
# Verify clang installation
24+
echo "Verifying clang installation..."
25+
clang --version
26+
clangd --version
2427

2528

2629
# Install Miniconda if not already installed

0 commit comments

Comments
 (0)