From fda55d7c908f7679d468c38c853571027d3669c3 Mon Sep 17 00:00:00 2001 From: Henry Cook Date: Fri, 7 Nov 2014 17:08:37 -0800 Subject: [PATCH] forgot barrier in mt-matmul --- benchmarks/mt-matmul/matmul.c | 2 ++ 1 file changed, 2 insertions(+) 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); } } } -- 2.30.2