VectorizationBase seems to wrongly detect the number of the physical cores

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:

  1. Delete CPUSummary.num_threads that exists in 1.8 but not in the latest version.
  2. The meaning of the cache_size functions may also have changed since then.
  3. 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.
1 Like