Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Oct 19, 2020
1 parent 62409d5 commit ba015d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpymath/src/matrix/doubleRoutines.h
Expand Up @@ -27,7 +27,7 @@ double doubleMatrixSum(double *a, long int rows, long long cols, long int rowStr
omp_set_num_threads(threads);
# endif

# pragma omp parallel for private(i, j) shared(a, b, c, rows, cols, rowStrideA, colStrideA, rowStrideB, colStrideB) default(none)
# pragma omp parallel for private(i, j) shared(a, res, rows, cols, rowStrideA, colStrideA) default(none)
for (i = 0; i < rows; i++) {
for (j = 0; j < cols - 3; j += 4) {
res += a[internalGet(i, j, rowStrideA, colStrideA)];
Expand Down Expand Up @@ -68,7 +68,7 @@ double doubleMatrixMean(double *a, long int rows, long long cols, long int rowSt
omp_set_num_threads(threads);
# endif

# pragma omp parallel for private(i, j) shared(a, b, c, rows, cols, rowStrideA, colStrideA, rowStrideB, colStrideB) default(none)
# pragma omp parallel for private(i, j) shared(a, res, rows, cols, rowStrideA, colStrideA) default(none)
for (i = 0; i < rows; i++) {
for (j = 0; j < cols - 3; j += 4) {
res += a[internalGet(i, j, rowStrideA, colStrideA)];
Expand Down

0 comments on commit ba015d1

Please sign in to comment.