We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 905d768 commit a9f6050Copy full SHA for a9f6050
src/generic_topology.jl
@@ -2,13 +2,14 @@
2
num_machines() = static(1)
3
num_sockets() = static(1)
4
5
-_get_num_cores() = (get_cpu_threads())::Int >> (Sys.ARCH !== :aarch64)
+const syst = @load_preference("syst", get_cpu_threads())
6
+const nc = @load_preference("nc", syst >> (Sys.ARCH !== :aarch64))
7
+
8
+_get_num_cores() = nc
9
+num_l1cache() = static(nc)
10
+num_cores() = static(nc)
11
+sys_threads() = static(syst)
12
-let syst = static(get_cpu_threads()), nc = static(syst >> (Sys.ARCH !== :aarch64))
- global num_l1cache() = nc
- global num_cores() = nc
- global sys_threads() = syst
-end
13
@static if Sys.ARCH === :aarch64
14
num_l2cache() = static(1)
15
num_l3cache() = static(0)
0 commit comments