Skip to content

Commit ca3f8fb

Browse files
committed
Merge remote-tracking branch 'origin/main' into etiotto.fuser.1
2 parents 3b0022c + 203089f commit ca3f8fb

File tree

267 files changed

+14501
-7061
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+14501
-7061
lines changed

.github/WINDOWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ python -c 'import torch;print(torch.__version__)'
141141
Install build dependencies:
142142

143143
```
144-
pip install -U wheel pybind11 cython cmake
144+
pip install -U wheel pybind11 cmake
145145
```
146146

147147
Build and install Triton:

.github/actions/setup-pytorch/action.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ inputs:
2222
cache:
2323
description: Cache enabled or disabled
2424
default: enabled
25+
outputs:
26+
pytorch_cache_key:
27+
description: "PyTorch cache key"
28+
value: ${{ steps.generate-pytorch-cache-key.outputs.pytorch_cache_key }}
2529
runs:
2630
using: "composite"
2731
steps:
@@ -70,22 +74,24 @@ runs:
7074
sudo ln -sfT ${{ inputs.oneapi }} /opt/intel/oneapi
7175
7276
- name: Generate PyTorch cache key
77+
id: generate-pytorch-cache-key
7378
shell: bash
79+
env:
80+
# Increase this value to reset cache
81+
CACHE_NUMBER: 18
7482
run: |
7583
ONEAPI_LINK=$(readlink /opt/intel/oneapi || true)
7684
ONEAPI_KEY=$(sha256sum /opt/intel/installed.txt 2> /dev/null | cut -d\ -f1 || true)
7785
PYTORCH_CACHE_KEY=$(echo $PYTHON_VERSION $PYTORCH_COMMIT_ID ${{ hashFiles('scripts/patch-pytorch.sh') }} ${{ inputs.mode }}${ONEAPI_KEY}${ONEAPI_LINK} | sha256sum - | cut -d\ -f1)
7886
echo "PYTORCH_CACHE_KEY=$PYTORCH_CACHE_KEY" | tee -a "$GITHUB_ENV"
87+
echo "pytorch_cache_key=pytorch-$PYTORCH_CACHE_KEY-$CACHE_NUMBER" >> "$GITHUB_OUTPUT"
7988
8089
- name: Load PyTorch from a cache
8190
id: pytorch-cache
8291
uses: ./.github/actions/load
83-
env:
84-
# Increase this value to reset cache
85-
CACHE_NUMBER: 18
8692
with:
8793
path: pytorch
88-
key: pytorch-$PYTORCH_CACHE_KEY-$CACHE_NUMBER
94+
key: ${{ steps.generate-pytorch-cache-key.outputs.pytorch_cache_key }}
8995
enabled: ${{ inputs.cache == 'enabled' }}
9096

9197
- name: Clone PyTorch repository
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
229e8ba104e3b0a6e88c36effefa3ea914b25673
1+
f301733b03758ccd67642d2c202f2d589bd231a4

.github/pins/pti.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
15a201d25e5659692613b98ee33513263b689101

.github/pins/pytorch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7f4c3e7d2f3989115474d77936915fab6d6e0d93
1+
37d57ac9cb7f538b812cf1d9851b55b46213fe15

.github/workflows/build-test-reusable.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
mode: ${{ inputs.pytorch_mode }}
120120

121121
- name: Build Proton with XPU support
122-
if: inputs.driver_version == 'rolling' && inputs.device == 'max1100'
122+
if: inputs.device == 'max1100'
123123
run: |
124124
echo TRITON_BUILD_PROTON_XPU=1 | tee -a $GITHUB_ENV
125125
@@ -285,11 +285,23 @@ jobs:
285285
run: |
286286
echo "TRITON_TEST_CMD=${{ needs.build.outputs.test-triton-command }}" | tee -a $GITHUB_ENV
287287
288-
- name: Run Proton tests
289-
if: matrix.suite == 'rest' && inputs.driver_version == 'rolling' && inputs.device == 'max1100'
288+
- name: Build PTI && Run Proton tests
289+
if: matrix.suite == 'rest' && inputs.device == 'max1100'
290290
run: |
291+
PTI_COMMIT_ID="$(<.github/pins/pti.txt)"
292+
git clone https://github.com/intel/pti-gpu.git
293+
cd pti-gpu
294+
git checkout $PTI_COMMIT_ID
295+
cd sdk
296+
cmake --preset linux-icpx-release
297+
BUILD_TESTING=1 PTI_BUILD_SAMPLES=1 cmake --build --preset linux-icpx-release
298+
299+
PTI_LIBS_DIR="$(pwd)/build-linux-icpx-release/lib/"
300+
cd ../..
301+
302+
export LD_LIBRARY_PATH=$PTI_LIBS_DIR:$LD_LIBRARY_PATH
303+
export TRITON_XPUPTI_LIB_PATH=$PTI_LIBS_DIR
291304
cd third_party/proton/test
292-
# FIXME: enable 'test_record.py' back
293305
pytest test_api.py test_lib.py test_profile.py test_viewer.py -s -v
294306
cd ..
295307
@@ -384,7 +396,7 @@ jobs:
384396
reports:
385397
name: Reports
386398
runs-on:
387-
- linux
399+
- runner-0.0.22
388400
needs: integration-tests
389401
steps:
390402
- name: Checkout repository

.github/workflows/build-test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
.venv\Scripts\activate.ps1
120120
Invoke-BatchFile "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
121121
cd ${{ env.NEW_WORKSPACE }}
122-
pip install -U wheel pybind11 cython cmake
122+
pip install -U wheel pybind11 cmake
123123
pip install -v '.[build,tests,tutorials]'
124124
125125
- name: Triton version

.github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
path: $HOME/.cache/pip
7979
key: pip-3.10-${{ hashFiles('.pre-commit-config.yaml') }}-${{ env.CACHE_NUMBER }}
8080

81-
- name: Install Python 3.10
82-
uses: actions/setup-python@v6
81+
- name: Install Python (from pyenv)
82+
uses: ./.github/actions/setup-pyenv-python
8383
with:
8484
python-version: '3.10'
8585

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
.venv\Scripts\activate.ps1
5454
Invoke-BatchFile "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
5555
cd ${{ env.NEW_WORKSPACE }}
56-
pip install -U wheel pybind11 cython cmake
56+
pip install -U wheel pybind11 cmake
5757
pip install -v '.[build]'
5858
5959
- name: Clean

.github/workflows/coverity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
run: |
2525
sudo apt install -y file
2626
27-
- name: Install Python 3.10
28-
uses: actions/setup-python@v6
27+
- name: Install Python (from pyenv)
28+
uses: ./.github/actions/setup-pyenv-python
2929
with:
3030
python-version: '3.10'
3131

0 commit comments

Comments
 (0)