Skip to content

Commit 3057d41

Browse files
authored
Halve memory used by scanPerf performance test (#27873)
[reviewed by @e-kayrakli and OK'd by @benharsh] By default, this test uses a problem size that consumes ~1/2 of the physical memory by using '4' as the default memFraction and allocating two arrays of that size. This PR divides the problem size by 1/2 again to support portability to platforms that only support registering 50% of the heap memory.
2 parents a1d02b2 + d28906e commit 3057d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/scan/scanPerf.chpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ config const memFraction = 0;
55
const totMem = here.physicalMemory(unit = MemUnits.Bytes);
66
const defaultN = if memFraction == 0
77
then 30
8-
else numLocales * ((totMem / numBytes(int)) / memFraction /
9-
here.numColocales);
8+
else numLocales * ((totMem / numBytes(int)) /
9+
(2*memFraction) / here.numColocales);
1010

1111
config const n = defaultN,
1212
printTiming = false,

0 commit comments

Comments
 (0)