CPUSummary.num_cores is wrong.
Once upon a time, it was critically important that I supported running under WINE.
using Hwloc.jl would segfault Julia under WINE, so after CPUSummary 1.8, I dropped Hwloc.
I haven’t heard anything about WINE for a while, but I don’t think supporting it is still necessary.
so the solution might be to basically revert CPUSummary to its 1.8 version.
A PR to that effect would be welcome.
There are probably a few updates in behavior needed. Three that come to mind:
- Delete
CPUSummary.num_threadsthat exists in 1.8 but not in the latest version. - The meaning of the
cache_sizefunctions may also have changed since then. - Maybe hwloc supports the M1 now? Does it detect big vs little cores? Either way, at the time, Julia reported the 4 bit/4 small M1 as 8 threads, but now it is 4. The 8 big core version was also released since then, so my hack at the time is no longer appropriate.