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 57711af commit 5c9ada2Copy full SHA for 5c9ada2
lib/LinearSolveAutotune/src/gpu_detection.jl
@@ -88,8 +88,8 @@ function get_system_info()
88
info["cpu_name"] = "Unknown"
89
end
90
91
- # CPUSummary.num_cores() returns the physical cores
92
- info["num_cores"] = CPUSummary.num_cores()
+ # CPUSummary.num_cores() returns the physical cores (as Static.StaticInt)
+ info["num_cores"] = Int(CPUSummary.num_cores())
93
info["num_logical_cores"] = Sys.CPU_THREADS
94
info["num_threads"] = Threads.nthreads()
95
@@ -167,7 +167,7 @@ function get_detailed_system_info()
167
168
169
try
170
- system_data["cpu_cores"] = CPUSummary.num_cores()
+ system_data["cpu_cores"] = Int(CPUSummary.num_cores())
171
catch
172
system_data["cpu_cores"] = "unknown"
173
0 commit comments