]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed race condition.
authorBart Van Assche <bvanassche@acm.org>
Mon, 10 Mar 2008 18:32:51 +0000 (18:32 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 10 Mar 2008 18:32:51 +0000 (18:32 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7627

exp-drd/tests/matinv_openmp.c

index 2a91f112121b0fd64e977650491f6fae091e9cba..dfdf1d768ebaeffdd5177801803a2cfe48ae08ec 100644 (file)
@@ -185,7 +185,7 @@ static void gj(elem_t* const a, const int rows, const int cols)
     }
 
     // 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)