Skip to content

Commit 8a9884d

Browse files
InteractiveUtils.versioninfo(): print the value of Base.Threads.nthreads() (#43806)
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
1 parent 976dcc8 commit 8a9884d

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
@@ -128,7 +128,7 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
128128
end
129129
else
130130
cpu = Sys.cpu_info()
131-
println(io, " CPU: ", cpu[1].model)
131+
println(io, " CPU: ", length(cpu), " × ", cpu[1].model)
132132
end
133133

134134
if verbose
@@ -141,6 +141,7 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
141141
println(io, " WORD_SIZE: ", Sys.WORD_SIZE)
142142
println(io, " LIBM: ",Base.libm_name)
143143
println(io, " LLVM: libLLVM-",Base.libllvm_version," (", Sys.JIT, ", ", Sys.CPU_NAME, ")")
144+
println(io, " Threads: ", Threads.nthreads(), " on ", Sys.CPU_THREADS, " virtual cores")
144145

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

0 commit comments

Comments
 (0)