Author: bart
Date: 2008-03-10 18:32:51 +0000 (Mon, 10 Mar 2008)
New Revision: 7627

Log:
Fixed race condition.

Modified:
   trunk/exp-drd/tests/matinv_openmp.c


Modified: trunk/exp-drd/tests/matinv_openmp.c
===================================================================
--- trunk/exp-drd/tests/matinv_openmp.c 2008-03-10 17:57:41 UTC (rev 7626)
+++ trunk/exp-drd/tests/matinv_openmp.c 2008-03-10 18:32:51 UTC (rev 7627)
@@ -185,7 +185,7 @@
     }
 
     // Reduce all rows j != i.
-#pragma omp parallel for
+#pragma omp parallel for private(j, k)
     for (j = 0; j < rows; j++)
     {
       if (i != j)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to