Skip to content

Commit 5870dfc

Browse files
authored
Use the actual runtime dependencies for PyTorch (#4218)
Updating "Test with pip" workflow that verifies that the latest nightly wheels of PyTorch built in this repository works with Triton built from main. Instead of DLE, the workflow uses runtime dependencies installed from pypi. This changes ensures that these dependencies are actual (fetched for pinned PyTorch commit) and not hardcoded in the workflow. Signed-off-by: Pavel Chekin <[email protected]>
1 parent 4e1199b commit 5870dfc

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/pip-test.yml

+6-20
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ permissions: read-all
2626

2727
env:
2828
PYTHON_VERSION: '3.9'
29-
# FIXME: temporary initialize oneapi/ccl because our pytorch build requires it
30-
TRITON_TEST_CMD: "source /opt/intel/oneapi/ccl/latest/env/vars.sh && scripts/test-triton.sh --skip-pytorch-install"
29+
TRITON_TEST_CMD: scripts/test-triton.sh --skip-pytorch-install
3130

3231
jobs:
3332
tests:
@@ -53,28 +52,15 @@ jobs:
5352
# transformers package is required for the inductor (e2e) test
5453
wheels_pattern: '{torch,transformers}-*.whl'
5554

56-
- name: Setup Triton
55+
- name: Install Triton
5756
uses: ./.github/actions/setup-triton
5857

59-
- name: Attempt to get PyTorch XPU dependencies
58+
- name: Install runtime dependencies
6059
run: |
61-
set +e
62-
curl -sSLO https://raw.githubusercontent.com/pytorch/pytorch/$(<.github/pins/pytorch.txt)/.github/scripts/generate_binary_build_matrix.py
60+
curl -sSLO --retry 10 https://raw.githubusercontent.com/pytorch/pytorch/$(<.github/pins/pytorch.txt)/.github/scripts/generate_binary_build_matrix.py
6361
sed -i '/^validate_nccl_dep_consistency.*/d' generate_binary_build_matrix.py
64-
python -c "from generate_binary_build_matrix import PYTORCH_EXTRA_INSTALL_REQUIREMENTS; print(' '.join(PYTORCH_EXTRA_INSTALL_REQUIREMENTS['xpu'].split(' | ')))"
65-
66-
# FIXME: dependencies for PyTorch XPU are currently maintained manually below.
67-
# https://github.com/pytorch/pytorch/pull/151899/files#diff-c629948d2bb1c874955838190a9cd19f154709c0a36e071e5da91abb457d9b05
68-
- name: Install Triton runtime dependencies
69-
run: |
70-
pip install \
71-
intel-cmplr-lib-rt==2025.1.1 \
72-
intel-cmplr-lib-ur==2025.1.1 \
73-
intel-cmplr-lic-rt==2025.1.1 \
74-
intel-sycl-rt==2025.1.1 \
75-
tcmlib==1.3.0 \
76-
umf==0.10.0 \
77-
intel-pti==0.12.0
62+
python -c "from generate_binary_build_matrix import PYTORCH_EXTRA_INSTALL_REQUIREMENTS; print('\n'.join(PYTORCH_EXTRA_INSTALL_REQUIREMENTS['xpu'].split(' | ')))" | tee /tmp/requirements.txt
63+
pip install -r /tmp/requirements.txt
7864
7965
- name: Run core tests
8066
run: |

0 commit comments

Comments
 (0)