@@ -127,6 +127,10 @@ jobs:
127127 DEBUG=1
128128 python -m build --wheel --no-isolation && pip install dist/*.whl
129129
130+ - name : Build PTI
131+ run : |
132+ ./scripts/install-pti.sh --build-level-zero
133+
130134 - name : Set test-triton command line
131135 id : test-triton
132136 run : |
@@ -170,13 +174,19 @@ jobs:
170174 dest : ${{ steps.pip-cache.outputs.dest }}
171175
172176 - name : Upload Triton wheels
173- uses : actions/upload-artifact@v4
177+ uses : actions/upload-artifact@v5
174178 with :
175179 name : triton-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
176180 path : dist/*.whl
177181
178- - name : Upload test reports
182+ - name : Upload PTI wheels
179183 uses : actions/upload-artifact@v4
184+ with :
185+ name : pti-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
186+ path : .scripts_cache/pti/dist/*.whl
187+
188+ - name : Upload test reports
189+ uses : actions/upload-artifact@v5
180190 with :
181191 name : test-reports-build-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
182192 include-hidden-files : true
@@ -238,15 +248,27 @@ jobs:
238248 mode : ${{ inputs.pytorch_mode }}
239249
240250 - name : Download Triton wheels
241- uses : actions/download-artifact@v5
251+ uses : actions/download-artifact@v6
242252 with :
243253 name : triton-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
244254
255+ - name : Download PTI wheels
256+ uses : actions/download-artifact@v5
257+ with :
258+ name : pti-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
259+
245260 - name : Install Triton
246261 run : |
247262 pip install triton-*.whl
248263 python -c 'import triton; print(triton.__version__)'
249264
265+ - name : Install PTI
266+ run : |
267+ pip install intel_pti-*.whl
268+ PTI_LIBS_DIR=$(python ./scripts/pti_lib.py)
269+ ls $PTI_LIBS_DIR
270+ echo "PTI_LIBS_DIR=$PTI_LIBS_DIR" | tee -a $GITHUB_ENV
271+
250272 - name : Report environment details
251273 run : |
252274 if [ "${{ matrix.suite }}" == "minicore" ]; then
@@ -283,21 +305,7 @@ jobs:
283305 - name : Build PTI && Run Proton tests
284306 if : matrix.suite == 'rest'
285307 run : |
286- # `intel-pti` can be installed in "Setup PyTorch" step with `pytorch_mode==wheels`
287- pip uninstall intel-pti -y
288- PTI_COMMIT_ID="$(<.github/pins/pti.txt)"
289- git clone https://github.com/intel/pti-gpu.git
290- cd pti-gpu
291- git checkout $PTI_COMMIT_ID
292- cd sdk
293- cmake --preset linux-icpx-release
294- BUILD_TESTING=1 PTI_BUILD_SAMPLES=1 cmake --build --preset linux-icpx-release
295-
296- PTI_LIBS_DIR="$(pwd)/build-linux-icpx-release/lib/"
297- cd ../..
298-
299- export LD_LIBRARY_PATH=$PTI_LIBS_DIR:$LD_LIBRARY_PATH
300- export TRITON_XPUPTI_LIB_PATH=$PTI_LIBS_DIR
308+ export LD_LIBRARY_PATH=${{ env.PTI_LIBS_DIR }}:$LD_LIBRARY_PATH
301309 cd third_party/proton/test
302310 pytest test_api.py test_cmd.py test_lib.py test_profile.py test_viewer.py --device xpu -s -v
303311 cd ..
@@ -384,7 +392,7 @@ jobs:
384392 dest : ${{ steps.pip-cache.outputs.dest }}
385393
386394 - name : Upload test reports
387- uses : actions/upload-artifact@v4
395+ uses : actions/upload-artifact@v5
388396 with :
389397 name : test-reports-${{ matrix.suite }}-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
390398 include-hidden-files : true
@@ -407,7 +415,7 @@ jobs:
407415 key : pip-${{ inputs.python_version }}-${{ hashFiles('pyproject.toml', 'setup.py') }}-${{ env.PIP_CACHE_NUMBER }}
408416
409417 - name : Download test reports
410- uses : actions/download-artifact@v5
418+ uses : actions/download-artifact@v6
411419 with :
412420 pattern : test-reports-*-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
413421 path : reports
@@ -433,20 +441,20 @@ jobs:
433441 python scripts/pass_rate.py --reports reports --suite tutorials --json > pass_rate_tutorials.json
434442
435443 - name : Upload pass rate report
436- uses : actions/upload-artifact@v4
444+ uses : actions/upload-artifact@v5
437445 with :
438446 name : pass_rate-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
439447 path : pass_rate*.json
440448
441449 - name : Upload tutorials test report
442- uses : actions/upload-artifact@v4
450+ uses : actions/upload-artifact@v5
443451 with :
444452 name : test-reports-tutorials-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
445453 include-hidden-files : true
446454 path : reports/tutorials.xml
447455
448456 - name : Upload tutorials performance report
449- uses : actions/upload-artifact@v4
457+ uses : actions/upload-artifact@v5
450458 with :
451459 name : tutorials-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
452460 if-no-files-found : warn
0 commit comments