@@ -2,35 +2,6 @@ name: Inductor E2E Nightly Tests
22
33on :
44 workflow_dispatch :
5- inputs :
6- torchrepo :
7- description : ' torchrepo'
8- required : true
9- default : ' https://github.com/pytorch/pytorch.git'
10- torchbranch :
11- description : ' torchbranch'
12- required : true
13- default : ' v2.0.1'
14- torchcommit :
15- description : ' torchcommit'
16- required : true
17- default : ' e9ebda29d87ce0916ab08c06ab26fd3766a870e5'
18- ipexrepo :
19- description : ' ipexrepo'
20- required : true
21- default : ' https://github.com/intel/intel-extension-for-pytorch.git'
22- ipexbranch :
23- description : ' ipexbranch'
24- required : true
25- default : ' xpu-master'
26- ipexcommit :
27- description : ' ipexcommit'
28- required : true
29- default : ' 4af80f77740ed939be78eba28ae36951823f335c'
30- oneapi :
31- description : ' oneAPI basekit version'
32- required : true
33- default : ' 2023.2.0'
345 schedule :
356 - cron : " 0 14 * * *" # run at 2 PM UTC
367
@@ -67,22 +38,16 @@ jobs:
6738 run : |
6839 python --version
6940 source ${HOME}/miniconda3/bin/activate triton-nightly-test
41+ source ${HOME}/triton-nightly/triton_src/third_party/intel_xpu_backend/.github/ci_pins/version.txt
7042 python --version
7143 pip install setuptools cython numpy wheel scikit-build scipy
7244 pip install psutil cpuid
7345 cd ${HOME}/triton-nightly
7446 cp triton_src/third_party/intel_xpu_backend/.github/scripts/env_prepare.sh .
7547 cp triton_src/third_party/intel_xpu_backend/.github/scripts/env_triton.sh ${HOME}/
7648 cp -r triton_src/third_party/intel_xpu_backend/.github/patches/ .
77- bash env_prepare.sh triton-nightly \
78- ${{ github.event.inputs.torchrepo }} \
79- ${{ github.event.inputs.torchbranch }} \
80- ${{ github.event.inputs.torchcommit }} \
81- ${{ github.event.inputs.ipexrepo }} \
82- ${{ github.event.inputs.ipexbranch }} \
83- ${{ github.event.inputs.ipexcommit }} \
84- ${{ github.event.inputs.oneapi }}
85- source ${HOME}/env_triton.sh ${{ github.event.inputs.oneapi }}
49+ bash env_prepare.sh triton-nightly $torch_repo $torch_branch $torch_commit $ipex_repo $ipex_branch $ipex_commit $oneapi_version
50+ source ${HOME}/env_triton.sh $oneapi_version
8651 python -c "import torch;import intel_extension_for_pytorch"
8752 if [ ${PIPESTATUS[0]} -ne 0 ]; then
8853 echo -e "[ERROR] Public-torch or IPEX BUILD FAIL"
9358 shell : bash
9459 run : |
9560 source ${HOME}/miniconda3/bin/activate triton-nightly-test
61+ source ${HOME}/triton-nightly/triton_src/third_party/intel_xpu_backend/.github/ci_pins/version.txt
9662 pip uninstall -y triton
9763 sudo update-ca-certificates --fresh
9864 export SSL_CERT_DIR=/etc/ssl/certs
10268 TRITON_CODEGEN_INTEL_XPU_BACKEND=1 python setup.py bdist_wheel
10369 pip install dist/*.whl
10470 cd ${HOME}/triton-nightly
105- source ${HOME}/env_triton.sh ${{ github.event.inputs.oneapi }}
71+ source ${HOME}/env_triton.sh $oneapi_version
10672 python -c "import triton"
10773 if [ ${PIPESTATUS[0]} -ne 0 ]; then
10874 echo -e "[ERROR] Triton BUILD FAIL"
11177
11278 - name : Prepare Benchmark
11379 run : |
80+ source ${HOME}/miniconda3/bin/activate triton-nightly-test
11481 cp ${HOME}/triton-nightly/triton_src/third_party/intel_xpu_backend/.github/scripts/inductor_xpu_test.sh ${HOME}/triton-nightly/pytorch
11582 cp ${HOME}/triton-nightly/triton_src/third_party/intel_xpu_backend/.github/scripts/inductor_perf_summary.py ${HOME}/triton-nightly/pytorch
11683 pip install styleFrame scipy pandas
@@ -121,13 +88,16 @@ jobs:
12188
12289 runs-on : [self-hosted, PVC_E2E]
12390
91+ timeout-minutes : 720
92+
12493 steps :
12594
12695 - name : ACC Test for triton on PVC
12796 run : |
12897 echo -e "[ INFO ] Run E2E Acc test on Node $(hostname)"
12998 source ${HOME}/miniconda3/bin/activate triton-nightly-test
130- source ${HOME}/env_triton.sh ${{ github.event.inputs.oneapi }}
99+ source ${HOME}/triton-nightly/triton_src/third_party/intel_xpu_backend/.github/ci_pins/version.txt
100+ source ${HOME}/env_triton.sh $oneapi_version
131101 cd ${HOME}/triton-nightly
132102 cd ${HOME}/triton-nightly/pytorch
133103 rm -rf inductor_log
@@ -217,13 +187,16 @@ jobs:
217187
218188 runs-on : [self-hosted, PVC_E2E]
219189
190+ timeout-minutes : 720
191+
220192 steps :
221193
222194 - name : Perf Test for triton on PVC
223195 run : |
224196 echo -e "[ INFO ] Run E2E Perf test on Node $(hostname)"
225197 source ${HOME}/miniconda3/bin/activate triton-nightly-test
226- source ${HOME}/env_triton.sh ${{ github.event.inputs.oneapi }}
198+ source ${HOME}/triton-nightly/triton_src/third_party/intel_xpu_backend/.github/ci_pins/version.txt
199+ source ${HOME}/env_triton.sh $oneapi_version
227200 cd ${HOME}/triton-nightly
228201 cd ${HOME}/triton-nightly/pytorch
229202 bash inductor_xpu_test.sh huggingface amp_bf16 inference performance xpu 0 & \
0 commit comments