aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/common/util.h
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2014-04-14 21:15:15 -0700
committerYunsup Lee <yunsup@cs.berkeley.edu>2014-04-14 21:15:15 -0700
commit83ed3f519de9929b6551b98677047228a8ab4d0c (patch)
tree186fe4ed156de7b588d0dac720d544df771fe60f /benchmarks/common/util.h
parent8f6e2420926471a7bd9a660305ab3d6a22f22dc9 (diff)
downloadriscv-tests-83ed3f519de9929b6551b98677047228a8ab4d0c.zip
riscv-tests-83ed3f519de9929b6551b98677047228a8ab4d0c.tar.gz
riscv-tests-83ed3f519de9929b6551b98677047228a8ab4d0c.tar.bz2
commit high-performance mm (scalar and vector versions)
Diffstat (limited to 'benchmarks/common/util.h')
-rw-r--r--benchmarks/common/util.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/benchmarks/common/util.h b/benchmarks/common/util.h
index 7c2a048..6c4f963 100644
--- a/benchmarks/common/util.h
+++ b/benchmarks/common/util.h
@@ -31,6 +31,8 @@ static void setStats(int enable) {}
extern void setStats(int enable);
#endif
+extern int have_vec;
+
#define static_assert(cond) switch(0) { case 0: case !!(long)(cond): ; }
static void printArray(const char name[], int n, const int arr[])
@@ -87,11 +89,7 @@ static int verifyDouble(int n, const volatile double* test, const double* verify
return 0;
}
-#ifndef ncores
-#define ncores 1
-#endif
-
-static void __attribute__((noinline)) barrier()
+static void __attribute__((noinline)) barrier(int ncores)
{
static volatile int sense;
static volatile int count;