Skip to content

Commit 3fdbfd3

Browse files
Update CPUSummary.jl
1 parent cf47b08 commit 3fdbfd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CPUSummary.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ else
5454
include("generic_topology.jl")
5555
end
5656
# Load preferences at compile time with exact same names as __init__
57-
const nc = @load_preference("nc", nothing)
58-
const syst = @load_preference("syst", nothing)
57+
const nc = @load_preference("nc", _get_num_cores())
58+
const syst = @load_preference("syst", Sys.CPU_THREADS)
5959
num_l1cache() = static(nc)
6060
num_cores() = static(nc)
6161
sys_threads() = static(syst)

0 commit comments

Comments
 (0)