Skip to content

Commit

Permalink
Remove omp in mean_arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
kay0u authored May 29, 2020
1 parent e6469eb commit b19d883
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 b19d883

Please sign in to comment.