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 7af13ef7807c474b7d6e8cd8f91fc4082f3700a3
parent 43b64455bb2586f8d0dca506dd9068373de92ad6
Author: Anders Damsgaard Christensen <[email protected]>
Date: Tue, 22 Jan 2013 21:17:04 +0100
Made OMP pragma more explicit, yielding a speedup
Diffstat:
M matrixmul/c-linarr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/matrixmul/c-linarr.c b/matrixmul/c-linarr.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) default(none) shared(A,B,C,N) if(N>…
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.