projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d537de7
)
forgot barrier in mt-matmul
author
Henry Cook
<hcook@eecs.berkeley.edu>
Sat, 8 Nov 2014 01:08:37 +0000
(17:08 -0800)
committer
Henry Cook
<hcook@eecs.berkeley.edu>
Sat, 8 Nov 2014 01:08:37 +0000
(17:08 -0800)
benchmarks/mt-matmul/matmul.c
patch
|
blob
|
history
diff --git
a/benchmarks/mt-matmul/matmul.c
b/benchmarks/mt-matmul/matmul.c
index 95fbe0303d762ba5f5981a30301448311e4b8606..c38914d4d972b4c10b644d14d6e011eb4e8baea5 100644
(file)
--- 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);
}
}
}