aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/mt-matmul
diff options
context:
space:
mode:
authorHenry Cook <hcook@eecs.berkeley.edu>2014-11-07 17:08:37 -0800
committerHenry Cook <hcook@eecs.berkeley.edu>2014-11-07 17:08:37 -0800
commitfda55d7c908f7679d468c38c853571027d3669c3 (patch)
treec7e2528bfd6e372e110731c84f95b476f97c5429 /benchmarks/mt-matmul
parentd537de7deffa6036dab573ff174b7f8c8e470437 (diff)
downloadriscv-tests-fda55d7c908f7679d468c38c853571027d3669c3.zip
riscv-tests-fda55d7c908f7679d468c38c853571027d3669c3.tar.gz
riscv-tests-fda55d7c908f7679d468c38c853571027d3669c3.tar.bz2
forgot barrier in mt-matmul
Diffstat (limited to 'benchmarks/mt-matmul')
-rw-r--r--benchmarks/mt-matmul/matmul.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmarks/mt-matmul/matmul.c b/benchmarks/mt-matmul/matmul.c
index 95fbe03..c38914d 100644
--- a/benchmarks/mt-matmul/matmul.c
+++ b/benchmarks/mt-matmul/matmul.c
@@ -1,4 +1,5 @@
#include "dataset.h"
+#include "util.h"
//--------------------------------------------------------------------------
// single-thread, naive version
@@ -15,6 +16,7 @@ void __attribute__((noinline)) matmul(const int coreid, const int ncores, const
{
C[i + j*lda] += A[j*lda + k] * B[k*lda + i];
}
+ barrier(ncores);
}
}
}