File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,15 @@ pip install ninja cmake wheel pybind11
56
56
echo " Installing Triton requirements..."
57
57
pip install -r python/requirements.txt
58
58
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..."
61
68
pip install -e .
62
69
63
70
# Verify Triton installation
Original file line number Diff line number Diff line change @@ -15,12 +15,15 @@ echo "CONDA_ENV: $CONDA_ENV"
15
15
echo " PYTHON_VERSION: $PYTHON_VERSION "
16
16
echo " CUDA_VERSION: $CUDA_VERSION "
17
17
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 ..."
20
20
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
24
27
25
28
26
29
# Install Miniconda if not already installed
You can’t perform that action at this time.
0 commit comments