Skip to content

Commit

Permalink
Update wrong_sum.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
LoPA607 authored Oct 19, 2024
1 parent daaed41 commit 12f174f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrong_sum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int parallel_sum(const int arr[], int size, int step_size) {

#pragma omp parallel
{
#pragma omp for nowait

for (int i = 0; i < size; i += step_size) {
int start = i, end = i + step_size - 1;

Expand Down

0 comments on commit 12f174f

Please sign in to comment.