Skip to content

Commit f2ee3f4

Browse files
[BE] Fix triton windows build (pytorch#150547)
[BE] Fix triton windows build (pytorch#150512) Fixes pytorch#150480 Pull Request resolved: pytorch#150512 Approved by: https://github.com/atalman Co-authored-by: Andrey Talman <[email protected]> (cherry picked from commit 8102272) Co-authored-by: Wang, Chuanqi <[email protected]>
1 parent dfd39fe commit f2ee3f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/scripts/windows/build_triton.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ if "%PY_VERS%" == "3.13t" (
99
) else (
1010
call conda create -n %PYTHON_PREFIX% -y -c=conda-forge python=%PY_VERS%
1111
)
12-
call conda run -n %PYTHON_PREFIX% pip install wheel pybind11 certifi cython cmake setuptools==72.1.0 ninja
12+
:: Fix cmake version for issue https://github.com/pytorch/pytorch/issues/150480
13+
call conda run -n %PYTHON_PREFIX% pip install wheel pybind11 certifi cython cmake==3.31.6 setuptools==72.1.0 ninja
1314

1415
dir "%VC_INSTALL_PATH%"
1516

.github/workflows/build-triton-wheel.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ on:
1212
- .github/workflows/build-triton-wheel.yml
1313
- .github/scripts/build_triton_wheel.py
1414
- .github/ci_commit_pins/triton.txt
15+
- .github/scripts/windows/install_vs2022.ps1
16+
- .github/scripts/windows/build_triton.bat
1517
- .ci/docker/ci_commit_pins/triton.txt
1618
- .ci/docker/ci_commit_pins/triton-xpu.txt
1719
pull_request:
1820
paths:
1921
- .github/workflows/build-triton-wheel.yml
2022
- .github/scripts/build_triton_wheel.py
2123
- .github/ci_commit_pins/triton.txt
24+
- .github/scripts/windows/install_vs2022.ps1
25+
- .github/scripts/windows/build_triton.bat
2226
- .ci/docker/ci_commit_pins/triton.txt
2327
- .ci/docker/ci_commit_pins/triton-xpu.txt
2428

@@ -243,7 +247,6 @@ jobs:
243247
.github/scripts/windows/build_triton.bat
244248
mkdir -p "${RUNNER_TEMP}/artifacts/"
245249
mv ./*.whl "${RUNNER_TEMP}/artifacts/"
246-
247250
- uses: actions/[email protected]
248251
with:
249252
name: pytorch-triton-wheel-${{ matrix.py_vers }}-${{ matrix.device }}

0 commit comments

Comments
 (0)