Commit c2d408f
authored
Update IREE third-party/benchmark for RISC-V Compatibility (#19538)
This PR updates the third-party/benchmark in IREE to address the use of
the RDCYCLE instruction on RISC-V. Starting from Linux 6.6[1], RDCYCLE
is a privileged instruction and cannot be directly accessed from user
space. To ensure compatibility, this update transitions to using RDTIME
instead.
Use RDTIME instead, which while less accurate has the advantage of being
synchronized between CPU (and thus monotonic) and of constant frequency.
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc4c07c89aada16229084eeb93895c95b7eabaa3
Signed-off-by: Phoebe Chen <[email protected]>1 parent e6ac016 commit c2d408f
1 file changed
+1
-1
lines changed- .github/workflows/pre-commit.yml+6-7
- .github/workflows/test_bindings.yml+5-5
- .github/workflows/wheels.yml+12-11
- .pre-commit-config.yaml+3-3
- CONTRIBUTORS+1
- MODULE.bazel+3-3
- WORKSPACE+11-3
- bazel/benchmark_deps.bzl+11-19
- include/benchmark/benchmark.h+9-5
- pyproject.toml+4-5
- setup.py+9
- src/complexity.cc+4-4
- src/cycleclock.h+6-5
- src/statistics.cc+2
- src/sysinfo.cc+2
- test/CMakeLists.txt+1-1
- test/perf_counters_gtest.cc+1-1
0 commit comments