File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
actions/run-tests/benchmark Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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 self-hosted
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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments