From 0135c15121899999646c47ad3cc6b93407b8bece Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Mon, 30 Sep 2024 08:45:40 -0700 Subject: [PATCH] use divCeilPos Signed-off-by: Jade Abraham --- test/studies/shootout/binary-trees/binarytrees-pool.chpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/studies/shootout/binary-trees/binarytrees-pool.chpl b/test/studies/shootout/binary-trees/binarytrees-pool.chpl index 876707f3f55b..d152250ab16f 100644 --- a/test/studies/shootout/binary-trees/binarytrees-pool.chpl +++ b/test/studies/shootout/binary-trees/binarytrees-pool.chpl @@ -6,7 +6,7 @@ Brad Chamberlain */ -use Allocators; +use Allocators, Math; config const n = 10; // the maximum tree depth @@ -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