-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect data for Apple Silicon, needs bump to 2.8.0 #58
Comments
@plessl The respective update is waiting for review: JuliaPackaging/Yggdrasil#5300 |
There will soon be a new version of Hwloc_jll. The corresponding pipelines are running: https://dev.azure.com/JuliaPackaging/Yggdrasil/_build/results?buildId=21337&view=results |
If you julia> topology()
Machine (3.49 GB)
Package L#0 P#0 (3.49 GB)
NUMANode (3.49 GB)
L2 (4.0 MB)
L1 (64.0 kB) + I1Cache Cache{size=131072,depth=1,linesize=128,associativity=0,type=Instruction}
Core L#0 P#0
PU L#0 P#0
L1 (64.0 kB) + I1Cache Cache{size=131072,depth=1,linesize=128,associativity=0,type=Instruction}
Core L#1 P#1
PU L#1 P#1
L1 (64.0 kB) + I1Cache Cache{size=131072,depth=1,linesize=128,associativity=0,type=Instruction}
Core L#2 P#2
PU L#2 P#2
L1 (64.0 kB) + I1Cache Cache{size=131072,depth=1,linesize=128,associativity=0,type=Instruction}
Core L#3 P#3
PU L#3 P#3
L2 (12.0 MB)
L1 (128.0 kB) + I1Cache Cache{size=196608,depth=1,linesize=128,associativity=0,type=Instruction}
Core L#4 P#4
PU L#4 P#4
L1 (128.0 kB) + I1Cache Cache{size=196608,depth=1,linesize=128,associativity=0,type=Instruction}
Core L#5 P#5
PU L#5 P#5
L1 (128.0 kB) + I1Cache Cache{size=196608,depth=1,linesize=128,associativity=0,type=Instruction}
Core L#6 P#6
PU L#6 P#6
L1 (128.0 kB) + I1Cache Cache{size=196608,depth=1,linesize=128,associativity=0,type=Instruction}
Core L#7 P#7
PU L#7 P#7
julia> Hwloc.l1cache_sizes()
8-element Vector{Int64}:
65536
65536
65536
65536
131072
131072
131072
131072
julia> Hwloc.l2cache_sizes()
2-element Vector{Int64}:
4194304
12582912 The printing of the (Closing this for now. Feel free to reopen if necessary.) |
Using However, Shall I go ahead open another issue? |
I was trying to query the cache sizes using hwloc on a Mac with an Apple Silcon (M1) processor. The currently used version of 2.7.1 hwloc returns faulty data or throws errors. For example, cachesize() fails:
and topology yields incorrect data (performance and efficiency cores appear to have same cache size, which is not correct.
The most recent release 2.8.0 of hwloc does now officially support M1 processors (https://www.mail-archive.com/[email protected]/msg00151.html) and the output of lstopo looks sane:
Since Hwloc.jl is the most convenient tool to access CPU architecture information in a cross-CPU manner, it would be great if you would bump the bundled version of hwloc to the latest version.
Cheers
Christian
The text was updated successfully, but these errors were encountered: