Skip to content

Commit 884f792

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 884f792

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

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)