Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .github/workflows/build-test-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ on:
description: Ignore pytest.skip
type: boolean
default: false
use_system_python:
description: Use system Python
type: boolean
default: false

permissions: read-all

Expand All @@ -60,3 +64,4 @@ jobs:
skip_list: ${{ inputs.skip_list }}
run_name: ${{ inputs.run_name || format('Build and test {0}', inputs.runner_label) }}
enable_unskip: ${{ inputs.enable_unskip }}
use_system_python: ${{ inputs.use_system_python || false }}
10 changes: 10 additions & 0 deletions .github/workflows/build-test-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ on:
description: Runner label for version
type: string
default: runner-0.0.20
use_system_python:
description: Use system Python
type: boolean
default: false

permissions: read-all

Expand Down Expand Up @@ -91,10 +95,16 @@ jobs:
key: pip-${{ inputs.python_version }}-${{ hashFiles('python/pyproject.toml', 'python/setup.py') }}-${{ env.CACHE_NUMBER }}

- name: Install Python ${{ inputs.python_version }}
if: ${{ !inputs.use_system_python }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}

- name: Identify Python version
run: |
PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info[0]}.{ sys.version_info[1]}")')"
echo "PYTHON_VERSION=$PYTHON_VERSION" | tee -a $GITHUB_ENV

- name: Setup PyTorch
uses: ./.github/actions/setup-pytorch
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/triton-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ on:
description: JSON list of benchmarks to skip
type: string
default: "[]"
use_system_python:
description: Use system Python
type: boolean
default: false
schedule:
- cron: "5 23 * * *"
pull_request:
Expand Down Expand Up @@ -67,10 +71,16 @@ jobs:
key: pip-$PYTHON_VERSION-$GITHUB_SHA

- name: Install Python
if: ${{ !(inputs.use_system_python || false) }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Identify Python version
run: |
PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info[0]}.{ sys.version_info[1]}")')"
echo "PYTHON_VERSION=$PYTHON_VERSION" | tee -a $GITHUB_ENV

- name: Install Python build dependencies
run: |
pip install wheel cmake
Expand Down
Loading