Skip to content

Commit

Permalink
Merge pull request AlexeyAB#5794 from kay0u/patch-1
Browse files Browse the repository at this point in the history
Remove omp in mean_arrays
  • Loading branch information
AlexeyAB authored May 29, 2020
2 parents e6469eb + b19d883 commit 16a9b02
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,10 @@ void mean_arrays(float **a, int n, int els, float *avg)
int j;
memset(avg, 0, els*sizeof(float));
for(j = 0; j < n; ++j){
#pragma omp parallel for
for(i = 0; i < els; ++i){
avg[i] += a[j][i];
}
}
#pragma omp parallel for
for(i = 0; i < els; ++i){
avg[i] /= n;
}
Expand Down

0 comments on commit 16a9b02

Please sign in to comment.