Skip to content

Commit 4011ff2

Browse files
committed
[Benchmarks] Add cherry-picking to Compute Benchmarks
This will allow L0 benchmarks to run properly with Level Zero v1.24.3 installed.
1 parent 7a8c8c7 commit 4011ff2

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

devops/actions/run-tests/benchmark/action.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -142,27 +142,6 @@ runs:
142142
cmake --build build -j "$(nproc)"
143143
cmake --install build
144144
145-
cd -
146-
# Install level zero v1.25.2
147-
# This is to have the latest level zero required by Compute Benchmarks
148-
# Remove this w/a once the sycl nightly images are updated to have level zero v1.25.2
149-
- name: Install level zero v1.25.2
150-
shell: bash
151-
run: |
152-
# Install level zero v1.25.2
153-
# Checkout Level Zero at build ref:
154-
wget https://github.com/oneapi-src/level-zero/archive/refs/tags/v1.25.2.tar.gz -O level-zero-v1.25.2.tar.gz
155-
tar -xvf level-zero-v1.25.2.tar.gz
156-
cd level-zero-1.25.2
157-
158-
# Configure Level Zero
159-
cmake -DCMAKE_BUILD_TYPE=Release \
160-
-Bbuild
161-
162-
# Build and install Level Zero
163-
cmake --build build -j "$(nproc)"
164-
sudo cmake --install build
165-
166145
cd -
167146
- name: Checkout results repo
168147
uses: actions/checkout@v5

devops/scripts/benchmarks/benches/compute.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def git_url(self) -> str:
6262
return "https://github.com/intel/compute-benchmarks.git"
6363

6464
def git_hash(self) -> str:
65-
# Oct 31, 2025
66-
return "1d4f68f82a5fe8c404aa1126615da4a1b789e254"
65+
# Oct 28, 2025
66+
return "2cfc831cdc536f1bfd14ce4aafbe59450d5ba090"
6767

6868
def setup(self) -> None:
6969
if options.sycl is None:
@@ -77,6 +77,13 @@ def setup(self) -> None:
7777
"compute-benchmarks",
7878
use_installdir=False,
7979
)
80+
# Cherry-pick a fix for build with latest unified-runtime
81+
# This is to omit changes that force usage of L0 v1.25.0
82+
# which are not supported by the latest Compute Runtime yet.
83+
try:
84+
self.project.cherry_pick("8a90f69aa4fdbb73ab5a1d0c0d5a412a03d6c2b5")
85+
except Exception as e:
86+
log.warning(f"Cherry-pick failed, continuing with build: {e}")
8087

8188
if not self.project.needs_rebuild():
8289
log.info(f"Rebuilding {self.project.name} skipped")

devops/scripts/benchmarks/git_project.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ def install(self) -> None:
107107
"""Installs the project."""
108108
run(f"cmake --install {self.build_dir}")
109109

110+
def cherry_pick(self, commit_hash: str) -> None:
111+
"""Cherry-pick a specific commit."""
112+
try:
113+
log.debug(f"Cherry-picking commit {commit_hash} in {self.src_dir}")
114+
run(f"git cherry-pick {commit_hash}", cwd=self.src_dir)
115+
log.debug(f"Successfully cherry-picked commit {commit_hash}")
116+
except Exception as e:
117+
log.error(f"Failed to cherry-pick commit {commit_hash}: {e}")
118+
raise
119+
110120
def _can_shallow_clone_ref(self, ref: str) -> bool:
111121
"""Check if we can do a shallow clone with this ref using git ls-remote."""
112122
try:

0 commit comments

Comments
 (0)