Skip to content

Commit bd6de9e

Browse files
Merge OpenAI Triton commit 81d413e and drop python 3.9 support (#5139)
This PR change the Triton base from 22188cc to 81d413e (Sep 13). Pass rate: 98.8%
2 parents 1f6ac21 + 5347bfb commit bd6de9e

File tree

17 files changed

+56
-80
lines changed

17 files changed

+56
-80
lines changed

.github/WINDOWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If you do not have a system Python installed at this step, you can install one w
5656
For example:
5757

5858
```
59-
choco install python --version=3.9.13
59+
choco install python --version=3.10.11
6060
```
6161

6262
### Git

.github/workflows/build-test-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ jobs:
5858
id: matrix
5959
run: |
6060
if [[ -n "${{ inputs.runner_label }}" ]]; then
61-
matrix='{"python": ["3.9", "3.10", "3.11", "3.12", "3.13"]}'
61+
matrix='{"python": ["3.10", "3.11", "3.12", "3.13"]}'
6262
else
63-
matrix='{"python": ["3.9", "3.10", "3.11", "3.12", "3.13"], "driver": ["rolling", "lts"]}'
63+
matrix='{"python": ["3.10", "3.11", "3.12", "3.13"], "driver": ["rolling", "lts"]}'
6464
fi
6565
echo "matrix=$matrix" | tee -a $GITHUB_OUTPUT
6666

.github/workflows/nightly-wheels.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
strategy:
3333
matrix:
3434
python:
35-
- "3.9"
3635
- "3.10"
3736
- "3.11"
3837
- "3.12"

.github/workflows/try-latest-pytorch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Matrix
6969
id: matrix
7070
run: |
71-
integration_matrix='{"python": ["3.9", "3.10", "3.11", "3.12"], "driver": ["rolling", "lts"]}'
71+
integration_matrix='{"python": ["3.10", "3.11", "3.12"], "driver": ["rolling", "lts"]}'
7272
7373
echo "integration_matrix=$integration_matrix" | tee -a $GITHUB_OUTPUT
7474
e2e_matrix='{
@@ -97,7 +97,7 @@ jobs:
9797
inductor/test_max_autotune.py
9898
inductor/test_compile_subprocess.py
9999
runner_label: ${{ inputs.runner_label }}
100-
python_version: "3.9"
100+
python_version: "3.10"
101101

102102
integration-tests:
103103
name: Integration tests

.github/workflows/wheels-pytorch.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
strategy:
2222
matrix:
2323
python:
24-
- "3.9"
2524
- "3.10"
2625
- "3.11"
2726
- "3.12"

.github/workflows/wheels-triton.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
strategy:
1717
matrix:
1818
python:
19-
- "3.9"
2019
- "3.10"
2120
- "3.11"
2221
- "3.12"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You can install the latest stable release of Triton from pip:
2727
pip install triton
2828
```
2929

30-
Binary wheels are available for CPython 3.9-3.13.
30+
Binary wheels are available for CPython 3.10-3.13.
3131

3232
# Install from source
3333

docs/getting-started/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can install the latest stable release of Triton from pip:
1414
1515
pip install triton
1616
17-
Binary wheels are available for CPython 3.9-3.13.
17+
Binary wheels are available for CPython 3.10-3.13.
1818

1919
-----------
2020
From Source

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ def get_git_version_suffix():
798798
TRITON_VERSION = "3.5.0" + get_git_version_suffix() + os.environ.get("TRITON_WHEEL_VERSION_SUFFIX", "")
799799

800800
# Dynamically define supported Python versions and classifiers
801-
MIN_PYTHON = (3, 9)
801+
MIN_PYTHON = (3, 10)
802802
MAX_PYTHON = (3, 14)
803803

804804
PYTHON_REQUIRES = f">={MIN_PYTHON[0]}.{MIN_PYTHON[1]},<{MAX_PYTHON[0]}.{MAX_PYTHON[1] + 1}"

third_party/proton/proton/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Optional
22
from triton._C.libproton import proton as libproton
3-
from .flags import get_profiling_on
3+
from .flags import flags
44

55

66
def depth(session: Optional[int] = 0) -> Optional[int]:
@@ -13,6 +13,6 @@ def depth(session: Optional[int] = 0) -> Optional[int]:
1313
Returns:
1414
depth (int or None): The depth of the context. If profiling is off, returns None.
1515
"""
16-
if not get_profiling_on():
16+
if not flags.profiling_on:
1717
return None
1818
return libproton.get_context_depth(session)

0 commit comments

Comments
 (0)