diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-05-04 00:56:42 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-05-04 00:56:58 -0700 |
commit | af7b8f8e8c41f0d1f887ee72427e3bf37abc38c1 (patch) | |
tree | 5cf39eec8d38640a8e026e3077f59360163fb886 /benchmarks/mm | |
parent | 6ce623a7b9c37d70772d03529cd80c7952ef6ccf (diff) | |
download | riscv-tests-af7b8f8e8c41f0d1f887ee72427e3bf37abc38c1.zip riscv-tests-af7b8f8e8c41f0d1f887ee72427e3bf37abc38c1.tar.gz riscv-tests-af7b8f8e8c41f0d1f887ee72427e3bf37abc38c1.tar.bz2 |
Speed up benchmarks that take a long time to run
Diffstat (limited to 'benchmarks/mm')
-rw-r--r-- | benchmarks/mm/gen.scala | 2 | ||||
-rw-r--r-- | benchmarks/mm/mm_main.c | 2 | ||||
-rw-r--r-- | benchmarks/mm/rb.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/benchmarks/mm/gen.scala b/benchmarks/mm/gen.scala index 38d9e6b..982daa8 100644 --- a/benchmarks/mm/gen.scala +++ b/benchmarks/mm/gen.scala @@ -74,7 +74,7 @@ object MMGen { ("cp a.out " + Seq("b", m, n, p, m1, n1, p1, "run").reduce(_+"."+_))! } def main(args: Array[String]): Unit = { - test1(4, 5, 6, 36, 35, 36) + test1(4, 5, 6, 24, 25, 24) //for (i <- 4 to 6; j <- 4 to 6; k <- 4 to 6) // test1(i, j, k, if (i == 5) 35 else 36, if (j == 5) 35 else 36, if (k == 5) 35 else 36) } diff --git a/benchmarks/mm/mm_main.c b/benchmarks/mm/mm_main.c index 4d08b15..133b5a2 100644 --- a/benchmarks/mm/mm_main.c +++ b/benchmarks/mm/mm_main.c @@ -6,6 +6,8 @@ #include <stdio.h> #include "util.h" +#pragma GCC optimize ("unroll-loops") + void thread_entry(int cid, int nc) { const int R = 8; diff --git a/benchmarks/mm/rb.h b/benchmarks/mm/rb.h index 593b54f..421c964 100644 --- a/benchmarks/mm/rb.h +++ b/benchmarks/mm/rb.h @@ -1,7 +1,5 @@ -// See LICENSE for license details. - static const int RBM = 4, RBN = 5, RBK = 6; -static const int CBM = 36, CBN = 35, CBK = 36; +static const int CBM = 24, CBN = 25, CBK = 24; static inline void kloop(size_t p, t* a0, size_t lda, t* b0, size_t ldb, t* c, size_t ldc) { t* c_0 = &c[ldc*0]; |