File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,8 +56,15 @@ pip install ninja cmake wheel pybind11
5656echo " Installing Triton requirements..."
5757pip 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..."
6168pip install -e .
6269
6370# Verify Triton installation
Original file line number Diff line number Diff line change @@ -15,12 +15,15 @@ echo "CONDA_ENV: $CONDA_ENV"
1515echo " PYTHON_VERSION: $PYTHON_VERSION "
1616echo " 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 ..."
2020sudo 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
You can’t perform that action at this time.
0 commit comments