Commit 4b3aa19 1 parent d93cf1c commit 4b3aa19 Copy full SHA for 4b3aa19
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function _get_num_threads()::Int
7
7
(Sys. CPU_THREADS):: Int >> (Sys. ARCH != = :aarch64 )
8
8
end
9
9
10
- _get_num_cores ():: Int = clamp (CpuId. cpucores_total (), 1 , (Sys. CPU_THREADS):: Int )
10
+ _get_num_cores ():: Int = clamp (CpuId. cpucores (), 1 , (Sys. CPU_THREADS):: Int )
11
11
12
12
let nc = static (_get_num_cores ())
13
13
global num_l1cache () = nc
@@ -57,7 +57,7 @@ cache_size(_) = StaticInt{0}()
57
57
# cache_size(::Union{Val{3},StaticInt{3}}) = num_cores() * StaticInt{1441792}()
58
58
function _extra_init ()
59
59
nc = _get_num_cores ()
60
- if (nc != CpuId. cpucores_total ())
60
+ if (nc != CpuId. cpucores ())
61
61
cache_l3_per_core = CpuId. cachesize (3 ) ÷ max (CpuId. cpucores (), 1 )
62
62
@eval cache_size (:: Union{Val{3},StaticInt{3}} ) = $ (static (cache_l3_per_core * nc))
63
63
end
You can’t perform that action at this time.
0 commit comments