Skip to content

Commit

Permalink
[tests] record rvv_bench cycles by mmio (HACK!!!)
Browse files Browse the repository at this point in the history
  • Loading branch information
FanShupei committed Nov 22, 2024
1 parent d477442 commit ee2dd8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/rvv_bench/t1_runtime.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ diff --git a/bench/bench.h b/bench/bench.h
index af1c839..661e8df 100644
--- a/bench/bench.h
+++ b/bench/bench.h
@@ -120,45 +120,11 @@ static void
@@ -120,45 +120,13 @@ static void
bench_run(Bench *benches, size_t nBenches)
{
for (Bench *b = benches; b != benches + nBenches; ++b) {
Expand Down Expand Up @@ -43,7 +43,9 @@ index af1c839..661e8df 100644
- print(f,bench_time(n, *i, *b))(",")(flush,);
- }
- print("],\n")(flush,);
+ *(int*)0x40000000 = 1;
+ bench_time(N, *i, *b);
+ *(int*)0x40000000 = 2;
}
- print("]\n},\n");
}
Expand Down

0 comments on commit ee2dd8c

Please sign in to comment.