From 6580fba632f128911ec95f8d7cb4ac27282bfe8f Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Sun, 13 Feb 2022 02:51:51 -0500 Subject: [PATCH] `InteractiveUtils.versioninfo()`: print the value of `Base.Threads.nthreads()` (#43806) Co-authored-by: Jameson Nash --- stdlib/InteractiveUtils/src/InteractiveUtils.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/InteractiveUtils/src/InteractiveUtils.jl b/stdlib/InteractiveUtils/src/InteractiveUtils.jl index ea756b3761e45..6c742660ca73c 100644 --- a/stdlib/InteractiveUtils/src/InteractiveUtils.jl +++ b/stdlib/InteractiveUtils/src/InteractiveUtils.jl @@ -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 @@ -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)