@@ -42,7 +42,7 @@ permissions:
4242jobs :
4343 e2e-build-hw :
4444 # 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'
4646 name : Build SYCL, UR, run Compute Benchmarks
4747 strategy :
4848 matrix :
8888 with :
8989 path : ur-repo
9090
91+ - name : Install pip packages
92+ run : pip install -r ${{github.workspace}}/ur-repo/third_party/requirements.txt
93+
9194 # We need to fetch special ref for proper PR's merge commit. Note, this ref may be absent if the PR is already merged.
9295 - name : Fetch PR's merge commit
9396 if : ${{ inputs.pr_no != 0 }}
@@ -131,44 +134,13 @@ jobs:
131134 - name : Build SYCL
132135 run : cmake --build ${{github.workspace}}/sycl_build -j
133136
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-
165137 - name : Set oneAPI Device Selector
166138 run : |
167139 echo "ONEAPI_DEVICE_SELECTOR=${{ matrix.adapter.str_name }}:${{ matrix.adapter.unit }}" >> $GITHUB_ENV
168140
169- - name : Run SYCL API Overhead benchmark
141+ - name : Run benchmarks
170142 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 }}
172144
173145 - name : Add comment to PR
174146 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
@@ -188,7 +160,7 @@ jobs:
188160 const test_status = '${{ steps.benchmarks.outcome }}';
189161 const job_status = '${{ job.status }}';
190162 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}`;
192164
193165 github.rest.issues.createComment({
194166 issue_number: pr_no,
0 commit comments