Introduction
Introduction Statistics Contact Development Disclaimer Help
tMade OMP pragma more explicit, yielding a speedup - numeric - C++ library with…
git clone git://src.adamsgaard.dk/numeric
Log
Files
Refs
LICENSE
---
commit 2e1958feb0be11837dd7affc6952e6e4a6845d6c
parent ae724a0097e0f7ba6c7a9a2ee9c0aef512cd2dc9
Author: Anders Damsgaard Christensen <[email protected]>
Date: Tue, 22 Jan 2013 21:18:11 +0100
Made OMP pragma more explicit, yielding a speedup
Diffstat:
M matrixmul/c-arrofarrs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/matrixmul/c-arrofarrs.c b/matrixmul/c-arrofarrs.c
t@@ -5,7 +5,7 @@ void matrixMult(double** A, double** B, double** C, int N)
{
int i, j, k;
double sum;
-#pragma omp parallel for private (j,k,sum)
+#pragma omp parallel for private (j,k,sum) shared(A,B,C,N) default(none)
for (i = 0; i<N; i++) {
for (j = 0; j<N; j++) {
sum = 0.0f;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.