Skip to content

Commit

Permalink
InteractiveUtils.versioninfo(): print the value of `Base.Threads.nt…
Browse files Browse the repository at this point in the history
…hreads()` (JuliaLang#43806)

Co-authored-by: Jameson Nash <[email protected]>
  • Loading branch information
DilumAluthge and vtjnash committed Feb 13, 2022
1 parent 976dcc8 commit 8a9884d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/InteractiveUtils/src/InteractiveUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
end
else
cpu = Sys.cpu_info()
println(io, " CPU: ", cpu[1].model)
println(io, " CPU: ", length(cpu), " × ", cpu[1].model)
end

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

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

0 comments on commit 8a9884d

Please sign in to comment.