Skip to content

Commit

Permalink
Update IREE third-party/benchmark for RISC-V Compatibility
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
phoebesv committed Jan 3, 2025
1 parent e6ac016 commit 72896df
Showing 1 changed file with 1 addition and 1 deletion.

0 comments on commit 72896df

Please sign in to comment.