@@ -80,13 +80,27 @@ jobs:
80
80
git checkout origin/pr/${{ inputs.pr_no }}/merge
81
81
git rev-parse origin/pr/${{ inputs.pr_no }}/merge
82
82
83
+ # TODO: As long as we didn't merge this workflow into main, we should allow both scripts location
84
+ - name : Establish bench scripts location
85
+ run : |
86
+ if [ -d "${{github.workspace}}/sycl-repo/devops/scripts/benchmarks" ]; then
87
+ echo "Bench scripts are in devops/scripts"
88
+ echo "BENCH_SCRIPTS_DIR=${{github.workspace}}/sycl-repo/devops/scripts/benchmarks" >> $GITHUB_ENV
89
+ elif [ -d "${{github.workspace}}/sycl-repo/unified-runtime/scripts/benchmarks" ]; then
90
+ echo "Bench scripts are in unified-runtime/scripts"
91
+ echo "BENCH_SCRIPTS_DIR=${{github.workspace}}/sycl-repo/unified-runtime/scripts/benchmarks" >> $GITHUB_ENV
92
+ else
93
+ echo "Bench scripts are absent...?"
94
+ exit 1
95
+ fi
96
+
83
97
- name : Create virtual environment
84
98
run : python -m venv .venv
85
99
86
100
- name : Activate virtual environment and install pip packages
87
101
run : |
88
102
source .venv/bin/activate
89
- pip install -r ${{github.workspace}}/sycl-repo/devops/scripts/benchmarks /requirements.txt
103
+ pip install -r ${BENCH_SCRIPTS_DIR} /requirements.txt
90
104
91
105
- name : Configure SYCL
92
106
run : >
@@ -144,7 +158,7 @@ jobs:
144
158
id : benchmarks
145
159
run : >
146
160
source .venv/bin/activate &&
147
- taskset -c "${{ env.CORES }}" ${{ github.workspace }}/sycl-repo/devops/scripts/benchmarks /main.py
161
+ taskset -c "${{ env.CORES }}" ${BENCH_SCRIPTS_DIR} /main.py
148
162
~/llvm_bench_workdir
149
163
--sycl ${{ github.workspace }}/sycl_build
150
164
--ur ${{ github.workspace }}/ur_install
@@ -198,6 +212,9 @@ jobs:
198
212
path : benchmark_results_${{ inputs.pr_no }}.html
199
213
key : benchmark-results-${{ inputs.pr_no }}-${{ matrix.adapter.str_name }}-${{ github.run_id }}
200
214
215
+ # TODO: As long as we didn't merge this workflow into main, we should allow both scripts location
201
216
- name : Get information about platform
202
217
if : ${{ always() }}
203
- run : ${{github.workspace}}/sycl-repo/devops/scripts/get_system_info.sh
218
+ run : |
219
+ ${{github.workspace}}/sycl-repo/devops/scripts/get_system_info.sh || true
220
+ ${{github.workspace}}/sycl-repo/unified-runtime/.github/scripts/get_system_info.sh || true
0 commit comments