Skip to content

Commit a2ffa91

Browse files
IanButterworthKristofferC
authored andcommitted
update nthreads info in versioninfo (#52423)
Fixes #52404 @nilshg I opted to make it one line as it fits. ``` julia> versioninfo() Julia Version 1.11.0-DEV.1011 Commit bb7091c* (2023-12-04 14:58 UTC) Platform Info: OS: macOS (arm64-apple-darwin23.0.0) CPU: 10 × Apple M2 Pro WORD_SIZE: 64 LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1) Threads: 1 default, 0 interactive, 1 GC (on 6 virtual cores) Environment: JULIA_EDITOR = code ``` (cherry picked from commit e96c13a)
1 parent b6348a9 commit a2ffa91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/InteractiveUtils/src/InteractiveUtils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
161161
println(io, " WORD_SIZE: ", Sys.WORD_SIZE)
162162
println(io, " LIBM: ",Base.libm_name)
163163
println(io, " LLVM: libLLVM-",Base.libllvm_version," (", Sys.JIT, ", ", Sys.CPU_NAME, ")")
164-
println(io, " Threads: ", Threads.maxthreadid(), " on ", Sys.CPU_THREADS, " virtual cores")
164+
println(io, """Threads: $(Threads.nthreads(:default)) default, $(Threads.nthreads(:interactive)) interactive, \
165+
$(Threads.ngcthreads()) GC (on $(Sys.CPU_THREADS) virtual cores)""")
165166

166167
function is_nonverbose_env(k::String)
167168
return occursin(r"^JULIA_|^DYLD_|^LD_", k)

0 commit comments

Comments
 (0)