Skip to content

Commit

Permalink
use divCeilPos
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
  • Loading branch information
jabraham17 committed Sep 30, 2024
1 parent 9dddbc7 commit 0135c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/studies/shootout/binary-trees/binarytrees-pool.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Brad Chamberlain
*/

use Allocators;
use Allocators, Math;

config const n = 10; // the maximum tree depth

Expand Down Expand Up @@ -41,7 +41,7 @@ proc main() {
//
for depth in depths {
const iterations = 2**(maxDepth - depth + minDepth),
ps = poolSize(depth, iterations/here.maxTaskPar);
ps = poolSize(depth, divCeilPos(iterations, here.maxTaskPar));
var sum = 0;

forall 1..iterations
Expand Down

0 comments on commit 0135c15

Please sign in to comment.