Skip to content

Commit 132890e

Browse files
[CI][Bench] Install perf in proper version in benchmark runs
1 parent 40a9999 commit 132890e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ runs:
140140
shell: bash
141141
run: |
142142
git clone -b unify-ci https://github.com/intel/llvm-ci-perf-results
143+
# Linux tools installed during docker creation may not match the host
144+
# kernel version, so we need to install the correct version here.
145+
- name: Install perf in version matching the host kernel
146+
shell: bash
147+
run: |
148+
sudo apt-get update
149+
sudo apt-get install -y linux-tools-$(uname -r)
143150
- name: Run compute-benchmarks
144151
env:
145152
# Need to append "_<device>_<backend>" to save name in order to follow

devops/scripts/benchmarks/utils/flamegraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def setup(
6767
"""
6868
if not shutil.which("perf"):
6969
raise FileNotFoundError(
70-
"perf command not found. Please install linux-tools or perf package."
70+
"perf command not found. Please install linux-tools-$(uname -r) or perf package."
7171
)
7272

7373
sanitized_suite_name = sanitize_filename(suite_name)

0 commit comments

Comments
 (0)