diff options
author | Henry Cook <hcook@eecs.berkeley.edu> | 2014-11-07 17:08:37 -0800 |
---|---|---|
committer | Henry Cook <hcook@eecs.berkeley.edu> | 2014-11-07 17:08:37 -0800 |
commit | fda55d7c908f7679d468c38c853571027d3669c3 (patch) | |
tree | c7e2528bfd6e372e110731c84f95b476f97c5429 /benchmarks | |
parent | d537de7deffa6036dab573ff174b7f8c8e470437 (diff) | |
download | riscv-tests-fda55d7c908f7679d468c38c853571027d3669c3.zip riscv-tests-fda55d7c908f7679d468c38c853571027d3669c3.tar.gz riscv-tests-fda55d7c908f7679d468c38c853571027d3669c3.tar.bz2 |
forgot barrier in mt-matmul
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/mt-matmul/matmul.c | 2 |
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); } } } |