Skip to content

Commit

Permalink
Fix threadpool slicing (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gefei-Tan authored Mar 27, 2023
1 parent d5f4fc8 commit eb0daf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emp-ot/ferret/lpn_f2.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class LpnF2 { public:
}));
}
int64_t start = (threads - 1) * width;
int64_t end = min(threads * width, n);
int64_t end = n;
task(nn, kk, start, end);

for (auto &f: fut) f.get();
Expand Down Expand Up @@ -103,7 +103,7 @@ class LpnF2 { public:
}));
}
int64_t start = (threads - 1) * width;
int64_t end = min(threads * width, n);
int64_t end = n;
task(nn, kk, start, end);

for (auto &f: fut) f.get();
Expand Down

0 comments on commit eb0daf2

Please sign in to comment.