Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ else
HAS_CORRECT_CUDA=false
fi

if [ "$HAS_CORRECT_CUDA" = "true" ]; then
echo "🔧 Installing development libraries only..."
# Install other dev libraries but skip CUDA toolkit
sudo apt-get install -y libstdc++6 libstdc++-12-dev libffi-dev libncurses-dev zlib1g-dev libxml2-dev git build-essential
else
echo "📦 Installing CUDA $CUDA_VERSION_REQUIRED and development libraries..."
echo "🔧 Installing development libraries"
sudo apt-get install -y libstdc++6 libstdc++-12-dev libffi-dev libncurses-dev zlib1g-dev libxml2-dev git build-essential cmake bc gdb curl wget

if [ "$HAS_CORRECT_CUDA" != "true" ]; then
echo "📦 Installing CUDA $CUDA_VERSION_REQUIRED"
# Install all packages including CUDA toolkit (this is the big download)
sudo apt-get install -y cuda-toolkit-12.8 libstdc++6 libstdc++-12-dev libffi-dev libncurses-dev zlib1g-dev libxml2-dev git build-essential
sudo apt-get install -y cuda-toolkit-12.8
fi

# Verify clang installation
Expand Down Expand Up @@ -170,7 +169,14 @@ echo "Using cuDNN version: $CUDNN_VERSION"

# Install cuDNN using PyTorch's script
echo "Installing cuDNN using PyTorch's script..."
curl -s https://raw.githubusercontent.com/pytorch/pytorch/main/.ci/docker/common/install_cudnn.sh | sudo bash
curl -s https://raw.githubusercontent.com/pytorch/pytorch/main/.ci/docker/common/install_cuda.sh -o /tmp/install_cuda.sh
chmod +x /tmp/install_cuda.sh
# The install_cudnn function is defined in install_cuda.sh.
# We source the script and call the function with sudo to install cuDNN.
# The -E flag preserves the environment variables. The function expects
# CUDA major version (e.g., "12") and CUDNN version as arguments.
CUDA_MAJOR_VERSION="${CUDA_VERSION%%.*}"
sudo -E bash -c "source /tmp/install_cuda.sh && install_cudnn \"${CUDA_MAJOR_VERSION}\" \"${CUDNN_VERSION}\""

# Install PyTorch nightly
echo "Installing PyTorch nightly..."
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
test:
runs-on: 4-core-ubuntu-gpu-t4
timeout-minutes: 120
needs: format-check
steps:
- uses: actions/checkout@v4

Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ clean:

install-dev:
@echo "Installing development dependencies..."
pip install -e ".[test]"
pip install black usort ruff
pip install black usort ruff coverage
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ pip install -e .

**Prerequisites:** Python ≥ 3.10, Triton > 3.3.1 ([install from source](https://github.com/triton-lang/triton)), GPU required (NVIDIA/AMD)

TritonParse relies on new features in Triton > 3.3.1. Please install Triton from source for now.

## 📚 Complete Documentation

| 📖 Guide | Description |
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test = [
"coverage>=7.0.0",
]


[tool.setuptools.packages.find]
include = ["tritonparse*"]

Expand Down