Open daviehh opened 1 year ago
Maybe related to the new gcthreads
?
JULIA_EXCLUSIVE=1 julia --threads=auto --gcthreads=1
runs ok, and --gcthreads=2 results in
ERROR: Too many threads requested for JULIA_EXCLUSIVE option
For me, on Linux pc 6.5.0-21-generic #21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 9 13:32:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
and julia 1.10.0 (and 1.10.1)
pc:~ $ julia
julia> versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 20 × 12th Gen Intel(R) Core(TM) i9-12900H
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, alderlake)
Threads: 1 on 20 virtual cores
Environment:
JULIA_EXCLUSIVE = 1
JULIA_PKG_USE_CLI_GIT = true
I get ERROR: Too many threads requested for JULIA_EXCLUSIVE option.
for threads above 15:
pc:~/julia/julia-1.10.0/bin $ ./julia --banner=no --threads=auto
ERROR: Too many threads requested for JULIA_EXCLUSIVE option.
pc:~/julia/julia-1.10.0/bin $ ./julia --banner=no --threads=20
ERROR: Too many threads requested for JULIA_EXCLUSIVE option.
pc:~/julia/julia-1.10.0/bin $ ./julia --banner=no --threads=15
ERROR: Too many threads requested for JULIA_EXCLUSIVE option.
pc:~/julia/julia-1.10.0/bin $ ./julia --banner=no --threads=14
julia>
Since error comes from
if (exclusive) {
if (nthreads > jl_cpu_threads()) {
jl_printf(JL_STDERR, "ERROR: Too many threads requested for %s option.\n", MACHINE_EXCLUSIVE_NAME);
exit(1);
}
...
I checked that jl_cpu_threads() == 20
:
julia> ccall(:jl_cpu_threads, Int32, ())
20
Running
with v1.10 now errors with
on macos,
versioninfo
is