Skip to content

Commit

Permalink
update nthreads info in versioninfo (#52423)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
IanButterworth authored and KristofferC committed Jan 5, 2024
1 parent 5de62a4 commit 79684ad
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 @@ -161,7 +161,8 @@ 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.maxthreadid(), " on ", Sys.CPU_THREADS, " virtual cores")
println(io, """Threads: $(Threads.nthreads(:default)) default, $(Threads.nthreads(:interactive)) interactive, \
$(Threads.ngcthreads()) GC (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 79684ad

Please sign in to comment.