Skip to content

Commit c79309b

Browse files
authored
cmdlineargs test: on 32-bit systems, impose a constant upper limit on the number of threads (#39854)
1 parent f2b5b6e commit c79309b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/cmdlineargs.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ let exename = `$(Base.julia_cmd()) --startup-file=no --color=no`
206206
# We want to test oversubscription, but on manycore machines, this can
207207
# actually exhaust limited PID spaces
208208
cpu_threads = max(2*cpu_threads, min(50, 10*cpu_threads))
209+
if Sys.WORD_SIZE == 32
210+
cpu_threads = min(cpu_threads, 50)
211+
end
209212
@test read(`$exename -t $cpu_threads -e $code`, String) == string(cpu_threads)
210213
withenv("JULIA_NUM_THREADS" => string(cpu_threads)) do
211214
@test read(`$exename -e $code`, String) == string(cpu_threads)

0 commit comments

Comments
 (0)