Skip to content

Commit e96c13a

Browse files
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 ```
1 parent 26d0460 commit e96c13a

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
@@ -160,7 +160,8 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
160160
end
161161
println(io, " WORD_SIZE: ", Sys.WORD_SIZE)
162162
println(io, " LLVM: libLLVM-",Base.libllvm_version," (", Sys.JIT, ", ", Sys.CPU_NAME, ")")
163-
println(io, " Threads: ", Threads.maxthreadid(), " on ", Sys.CPU_THREADS, " virtual cores")
163+
println(io, """Threads: $(Threads.nthreads(:default)) default, $(Threads.nthreads(:interactive)) interactive, \
164+
$(Threads.ngcthreads()) GC (on $(Sys.CPU_THREADS) virtual cores)""")
164165

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

0 commit comments

Comments
 (0)