From 72896df000ec739222e2c955a3499236a62f6ca1 Mon Sep 17 00:00:00 2001 From: Phoebe Chen Date: Thu, 12 Dec 2024 17:50:23 -0800 Subject: [PATCH] Update IREE third-party/benchmark for RISC-V Compatibility 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 --- third_party/benchmark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/benchmark b/third_party/benchmark index 1e96bb0ab5e7..99bdb2127d1f 160000 --- a/third_party/benchmark +++ b/third_party/benchmark @@ -1 +1 @@ -Subproject commit 1e96bb0ab5e758861f5bbbd4edbd0a8d9a2a7cae +Subproject commit 99bdb2127d1fa1cff444bbefb814e105c7d20c45