Skip to content

Commit 34a9292

Browse files
authored
[Nightly] Modify triton build method (#1759)
Use https://github.com/pytorch/pytorch/blob/main/.github/scripts/build_triton_wheel.py to build triton disable_e2e disable_ut --------- Co-authored-by: mengfeil <test>
1 parent 2257d78 commit 34a9292

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

.github/workflows/_linux_ut.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,16 @@ jobs:
8686
run: |
8787
source activate xpu_op_${ZE_AFFINITY_MASK}
8888
cd ../pytorch
89-
TRITON_REPO="https://github.com/intel/intel-xpu-backend-for-triton"
9089
if [ -z ${{ inputs.triton }} ]; then
9190
TRITON_COMMIT_ID="$(<.ci/docker/ci_commit_pins/triton-xpu.txt)"
9291
else
9392
TRITON_COMMIT_ID="${{ inputs.triton }}"
9493
fi
95-
echo ${TRITON_REPO}@${TRITON_COMMIT_ID}
9694
if [ "${{ inputs.pytorch }}" != "nightly_wheel" ]; then
97-
pip install --force-reinstall "git+${TRITON_REPO}@${TRITON_COMMIT_ID}#subdirectory=python"
95+
pip install cmake ninja pybind11
96+
rm -rf pytorch_triton_xpu-*.whl
97+
python .github/scripts/build_triton_wheel.py --device xpu --commit-hash ${TRITON_COMMIT_ID}
98+
pip install pytorch_triton_xpu-*.whl
9899
fi
99100
- name: Download Pytorch wheel
100101
if: ${{ inputs.pytorch != 'nightly_wheel' }}
@@ -413,15 +414,16 @@ jobs:
413414
run: |
414415
source activate xpu_op_${ZE_AFFINITY_MASK}
415416
cd ../pytorch
416-
TRITON_REPO="https://github.com/intel/intel-xpu-backend-for-triton"
417417
if [ -z ${{ inputs.triton }} ]; then
418418
TRITON_COMMIT_ID="$(<.ci/docker/ci_commit_pins/triton-xpu.txt)"
419419
else
420420
TRITON_COMMIT_ID="${{ inputs.triton }}"
421421
fi
422-
echo ${TRITON_REPO}@${TRITON_COMMIT_ID}
423422
if [ "${{ inputs.pytorch }}" != "nightly_wheel" ]; then
424-
pip install --force-reinstall "git+${TRITON_REPO}@${TRITON_COMMIT_ID}#subdirectory=python"
423+
pip install cmake ninja pybind11
424+
rm -rf pytorch_triton_xpu-*.whl
425+
python .github/scripts/build_triton_wheel.py --device xpu --commit-hash ${TRITON_COMMIT_ID}
426+
pip install pytorch_triton_xpu-*.whl
425427
fi
426428
- name: Download Pytorch wheel
427429
if: ${{ inputs.pytorch != 'nightly_wheel' }}

.github/workflows/nightly_ondemand.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,10 @@ jobs:
173173
run: |
174174
source activate e2e_ci
175175
cd ../pytorch
176-
TRITON_REPO="https://github.com/intel/intel-xpu-backend-for-triton"
177-
echo ${TRITON_REPO}@${TRITON_COMMIT_ID}
178-
pip install --force-reinstall "git+${TRITON_REPO}@${TRITON_COMMIT_ID}#subdirectory=python"
176+
pip install cmake ninja pybind11
177+
rm -rf pytorch_triton_xpu-*.whl
178+
python .github/scripts/build_triton_wheel.py --device xpu --commit-hash ${TRITON_COMMIT_ID}
179+
pip install pytorch_triton_xpu-*.whl
179180
- name: Download Pytorch wheel
180181
if: ${{ inputs.pytorch != 'nightly_wheel' }}
181182
uses: actions/download-artifact@v4

.github/workflows/nightly_ondemand_rolling.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,10 @@ jobs:
189189
run: |
190190
source activate e2e_ci
191191
cd ../pytorch
192-
TRITON_REPO="https://github.com/intel/intel-xpu-backend-for-triton"
193-
echo ${TRITON_REPO}@${TRITON_COMMIT_ID}
194-
pip install --force-reinstall "git+${TRITON_REPO}@${TRITON_COMMIT_ID}#subdirectory=python"
192+
pip install cmake ninja pybind11
193+
rm -rf pytorch_triton_xpu-*.whl
194+
python .github/scripts/build_triton_wheel.py --device xpu --commit-hash ${TRITON_COMMIT_ID}
195+
pip install pytorch_triton_xpu-*.whl
195196
- name: Download Pytorch wheel
196197
if: ${{ inputs.pytorch != 'nightly_wheel' }}
197198
uses: actions/download-artifact@v4

.github/workflows/pull.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ jobs:
150150
run: |
151151
source activate e2e_ci
152152
cd ../pytorch
153-
TRITON_REPO="https://github.com/intel/intel-xpu-backend-for-triton"
154-
TRITON_PINNED_COMMIT=$(cat .ci/docker/ci_commit_pins/triton-xpu.txt)
155-
echo ${TRITON_REPO}@${TRITON_PINNED_COMMIT}
156-
pip install --force-reinstall "git+${TRITON_REPO}@${TRITON_PINNED_COMMIT}#subdirectory=python"
153+
pip install cmake ninja pybind11
154+
rm -rf pytorch_triton_xpu-*.whl
155+
python .github/scripts/build_triton_wheel.py --device xpu
156+
pip install pytorch_triton_xpu-*.whl
157157
- name: Identify pinned versions
158158
run: |
159159
cd ../pytorch

0 commit comments

Comments
 (0)