From: Henry Cook Date: Sat, 8 Nov 2014 01:08:37 +0000 (-0800) Subject: forgot barrier in mt-matmul X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fda55d7c908f7679d468c38c853571027d3669c3;p=riscv-tests.git forgot barrier in mt-matmul --- 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); } } }