@@ -21,6 +21,7 @@ permissions: read-all
21
21
22
22
env :
23
23
PYTHONIOENCODING : utf-8
24
+ PYTHON_VERSION : " 3.10"
24
25
NEW_WORKSPACE : C:\gh${{ github.run_id }}
25
26
SKIPLIST : --skip-list scripts/skiplist/${{ inputs.skip_list }}
26
27
TRITON_TEST_CMD : bash -x scripts/test-triton.sh --skip-pytorch-install --skip-pip-install --skip-list scripts/skiplist/${{ inputs.skip_list }} --reports-dir reports --ignore-errors
71
72
run : |
72
73
.venv\Scripts\activate.ps1
73
74
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
74
- python -c 'import torch;print(torch.__version__)'
75
+ python -c 'import torch; print(torch.__version__)' | Tee-Object -Variable PYTORCH_VERSION
76
+ echo "PYTORCH_VERSION=$PYTORCH_VERSION" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
77
+
78
+ - name : Identify GPU
79
+ run : |
80
+ # Initializing oneAPI to enable sycl-ls, which is used in capture-hw-details.sh on Windows.
81
+ Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
82
+ bash -c './scripts/capture-hw-details.sh | tee -a $GITHUB_ENV'
83
+
84
+ - name : Report environment details
85
+ shell : bash
86
+ run : |
87
+ cd /c/gh${{ github.run_id }}
88
+ mkdir -p reports
89
+
90
+ cat <<EOF | tee /c/gh${{ github.run_id }}/reports/.env
91
+ TIMESTAMP=$(date '+%Y%m%d%H%M%S')
92
+ GITHUB_RUN_ID=$GITHUB_RUN_ID
93
+ GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER
94
+ GITHUB_RUN_ATTEMPT=$GITHUB_RUN_ATTEMPT
95
+ PYTHON_VERSION=$PYTHON_VERSION
96
+ PYTORCH_REPO=pytorch/pytorch
97
+ PYTORCH_COMMIT_ID=$(<.github/pins/pytorch.txt)"
98
+ PYTORCH_VERSION=$PYTORCH_VERSION
99
+ TRITON_REPO=$GITHUB_REPOSITORY
100
+ TRITON_COMMIT_ID=$GITHUB_SHA
101
+ TRITON_BRANCH=$GITHUB_REF_NAME
102
+ OS=${{ runner.os }}
103
+ LIBIGC1_VERSION=$LIBIGC1_VERSION
104
+ LEVEL_ZERO_VERSION=$LEVEL_ZERO_VERSION
105
+ AGAMA_VERSION=$AGAMA_VERSION
106
+ GPU_DEVICE=$GPU_DEVICE
107
+ EOF
75
108
76
109
- name : Clean up Triton cache
77
110
shell : bash
@@ -160,6 +193,16 @@ jobs:
160
193
name : pass_rate
161
194
path : ${{ env.NEW_WORKSPACE }}\pass_rate*.json
162
195
196
+ - name : Upload tutorial performance
197
+ uses : actions/upload-artifact@v4
198
+ with :
199
+ name : tutorials-report
200
+ if-no-files-found : warn
201
+ include-hidden-files : true
202
+ path : |
203
+ ${{ env.NEW_WORKSPACE }}\reports\*\*.csv
204
+ ${{ env.NEW_WORKSPACE }}\reports\.env
205
+
163
206
- name : Clean up workspace
164
207
if : ${{ always() }}
165
208
run : |
0 commit comments