@@ -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,19 +305,7 @@ jobs:
283305 - name : Build PTI && Run Proton tests
284306 if : matrix.suite == 'rest'
285307 run : |
286- PTI_COMMIT_ID="$(<.github/pins/pti.txt)"
287- git clone https://github.com/intel/pti-gpu.git
288- cd pti-gpu
289- git checkout $PTI_COMMIT_ID
290- cd sdk
291- cmake --preset linux-icpx-release
292- BUILD_TESTING=1 PTI_BUILD_SAMPLES=1 cmake --build --preset linux-icpx-release
293-
294- PTI_LIBS_DIR="$(pwd)/build-linux-icpx-release/lib/"
295- cd ../..
296-
297- export LD_LIBRARY_PATH=$PTI_LIBS_DIR:$LD_LIBRARY_PATH
298- export TRITON_XPUPTI_LIB_PATH=$PTI_LIBS_DIR
308+ export LD_LIBRARY_PATH=${{ env.PTI_LIBS_DIR }}:$LD_LIBRARY_PATH
299309 cd third_party/proton/test
300310 pytest test_api.py test_cmd.py test_lib.py test_profile.py test_viewer.py --device xpu -s -v
301311 cd ..
@@ -382,7 +392,7 @@ jobs:
382392 dest : ${{ steps.pip-cache.outputs.dest }}
383393
384394 - name : Upload test reports
385- uses : actions/upload-artifact@v4
395+ uses : actions/upload-artifact@v5
386396 with :
387397 name : test-reports-${{ matrix.suite }}-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
388398 include-hidden-files : true
@@ -405,7 +415,7 @@ jobs:
405415 key : pip-${{ inputs.python_version }}-${{ hashFiles('pyproject.toml', 'setup.py') }}-${{ env.PIP_CACHE_NUMBER }}
406416
407417 - name : Download test reports
408- uses : actions/download-artifact@v5
418+ uses : actions/download-artifact@v6
409419 with :
410420 pattern : test-reports-*-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
411421 path : reports
@@ -431,20 +441,20 @@ jobs:
431441 python scripts/pass_rate.py --reports reports --suite tutorials --json > pass_rate_tutorials.json
432442
433443 - name : Upload pass rate report
434- uses : actions/upload-artifact@v4
444+ uses : actions/upload-artifact@v5
435445 with :
436446 name : pass_rate-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
437447 path : pass_rate*.json
438448
439449 - name : Upload tutorials test report
440- uses : actions/upload-artifact@v4
450+ uses : actions/upload-artifact@v5
441451 with :
442452 name : test-reports-tutorials-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
443453 include-hidden-files : true
444454 path : reports/tutorials.xml
445455
446456 - name : Upload tutorials performance report
447- uses : actions/upload-artifact@v4
457+ uses : actions/upload-artifact@v5
448458 with :
449459 name : tutorials-${{ inputs.python_version }}-${{ inputs.runner_label || inputs.driver_version }}
450460 if-no-files-found : warn
0 commit comments