Skip to content

Commit de05f98

Browse files
authored
Merge pull request #2807 from oneapi-src/igchor/checkout_sycl_once
[Benchmarks] Only checkout SYCL repo once
2 parents 5e3735a + 1c15807 commit de05f98

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

.github/workflows/benchmarks-reusable.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ jobs:
7777
body: body
7878
})
7979
80-
- name: Checkout benchmark scripts
81-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
82-
with:
83-
repository: intel/llvm
84-
ref: sycl
85-
path: sc
86-
sparse-checkout: |
87-
devops/scripts/benchmarks
88-
8980
- name: Checkout results branch
9081
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
9182
with:
@@ -97,7 +88,7 @@ jobs:
9788
python -m venv .venv
9889
source .venv/bin/activate
9990
echo "$PATH" >> $GITHUB_PATH
100-
pip install -r sc/devops/scripts/benchmarks/requirements.txt
91+
pip install -r sycl-repo/devops/scripts/benchmarks/requirements.txt
10192
10293
- name: Checkout SYCL
10394
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -172,7 +163,7 @@ jobs:
172163
- name: Run benchmarks
173164
id: benchmarks
174165
run: >
175-
taskset -c ${{ env.CORES }} ./sc/devops/scripts/benchmarks/main.py
166+
taskset -c ${{ env.CORES }} ./sycl-repo/devops/scripts/benchmarks/main.py
176167
~/ur_bench_workdir
177168
--sycl ${{ github.workspace }}/sycl_build
178169
--ur ${{ github.workspace }}/ur_install
@@ -227,8 +218,8 @@ jobs:
227218
echo "Attempt #$attempt to push changes"
228219
229220
rm -f data.json data_archive.json
230-
cp ${{ github.workspace }}/sc/devops/scripts/benchmarks/html/data.json .
231-
cp ${{ github.workspace }}/sc/devops/scripts/benchmarks/html/data_archive.json .
221+
cp ${{ github.workspace }}/sycl-repo/devops/scripts/benchmarks/html/data.json .
222+
cp ${{ github.workspace }}/sycl-repo/devops/scripts/benchmarks/html/data_archive.json .
232223
233224
git add data.json data_archive.json results/
234225
git commit -m "Add benchmark results, data.json, and data_archive.json"
@@ -253,6 +244,6 @@ jobs:
253244
fi
254245
255246
echo "Regenerating data.json and data_archive.json"
256-
(cd ${{ github.workspace }} && ${{ github.workspace }}/sc/devops/scripts/benchmarks/main.py ~/ur_bench_workdir --dry-run --results-dir ${{ github.workspace }}/results-repo --output-html remote)
247+
(cd ${{ github.workspace }} && ${{ github.workspace }}/sycl-repo/devops/scripts/benchmarks/main.py ~/ur_bench_workdir --dry-run --results-dir ${{ github.workspace }}/results-repo --output-html remote)
257248
258249
done

0 commit comments

Comments
 (0)