@@ -42,7 +42,7 @@ permissions:
42
42
jobs :
43
43
e2e-build-hw :
44
44
# Run only on upstream; forks will not have the HW
45
- if : github.repository == 'oneapi-src/unified-runtime'
45
+ # if: github.repository == 'oneapi-src/unified-runtime'
46
46
name : Build SYCL, UR, run Compute Benchmarks
47
47
strategy :
48
48
matrix :
88
88
with :
89
89
path : ur-repo
90
90
91
+ - name : Install pip packages
92
+ run : pip install -r ${{github.workspace}}/ur-repo/third_party/requirements.txt
93
+
91
94
# We need to fetch special ref for proper PR's merge commit. Note, this ref may be absent if the PR is already merged.
92
95
- name : Fetch PR's merge commit
93
96
if : ${{ inputs.pr_no != 0 }}
@@ -131,44 +134,13 @@ jobs:
131
134
- name : Build SYCL
132
135
run : cmake --build ${{github.workspace}}/sycl_build -j
133
136
134
- - name : Set additional env. vars
135
- run : |
136
- echo "${{github.workspace}}/sycl_build/bin" >> $GITHUB_PATH
137
- echo "LD_LIBRARY_PATH=${{github.workspace}}/sycl_build/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
138
-
139
- # Running (newly built) sycl-ls sets up some extra variables
140
- - name : Setup SYCL variables
141
- run : |
142
- which clang++ sycl-ls
143
- SYCL_PI_TRACE=-1 sycl-ls
144
-
145
- - name : Checkout Compute Benchmarks
146
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
147
- with :
148
- repository : intel/compute-benchmarks
149
- path : compute-benchmarks-repo
150
- submodules : recursive
151
-
152
- - name : Configure Compute Benchmarks
153
- run : >
154
- cmake
155
- -B ${{github.workspace}}/compute-benchmarks-build/
156
- -S ${{github.workspace}}/compute-benchmarks-repo/
157
- -DCMAKE_BUILD_TYPE=Release
158
- -DBUILD_SYCL=ON
159
- -DSYCL_COMPILER_ROOT=${{github.workspace}}/sycl_build
160
- -DALLOW_WARNINGS=ON
161
-
162
- - name : Build Compute Benchmarks
163
- run : cmake --build ${{github.workspace}}/compute-benchmarks-build/ -j
164
-
165
137
- name : Set oneAPI Device Selector
166
138
run : |
167
139
echo "ONEAPI_DEVICE_SELECTOR=${{ matrix.adapter.str_name }}:${{ matrix.adapter.unit }}" >> $GITHUB_ENV
168
140
169
- - name : Run SYCL API Overhead benchmark
141
+ - name : Run benchmarks
170
142
id : benchmarks
171
- run : ${{ github.workspace }}/ur-repo/.github/ scripts/compute_benchmarks .py ${{ github.workspace }}/compute-benchmarks-build/bin/ ${{ inputs.bench_script_params }}
143
+ run : numactl -N 0 ${{ github.workspace }}/ur-repo/scripts/benchmarks/main .py ~/bench_workdir ${{github.workspace}}/sycl_build ${{ inputs.bench_script_params }}
172
144
173
145
- name : Add comment to PR
174
146
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
@@ -188,7 +160,7 @@ jobs:
188
160
const test_status = '${{ steps.benchmarks.outcome }}';
189
161
const job_status = '${{ job.status }}';
190
162
const params = '${{ inputs.bench_script_params }}';
191
- const body = `Compute Benchmarks ${adapter} run (with params: ${params}):\n${url}\nJob status: ${job_status}. Test status: ${test_status}.\n ${markdown}`;
163
+ const body = `Compute Benchmarks ${adapter} run (${params}):\n${url}\nJob status: ${job_status}. Test status: ${test_status}.\n ${markdown}`;
192
164
193
165
github.rest.issues.createComment({
194
166
issue_number: pr_no,
0 commit comments