Skip to content

Fix KeyError for newer Apple Silicon chips (M3/M4/M5)#88

Open
akashicMarga wants to merge 1 commit intotlkh:mainfrom
akashicMarga:fix/dynamic-cluster-detection
Open

Fix KeyError for newer Apple Silicon chips (M3/M4/M5)#88
akashicMarga wants to merge 1 commit intotlkh:mainfrom
akashicMarga:fix/dynamic-cluster-detection

Conversation

@akashicMarga
Copy link
Copy Markdown

Replace hardcoded E0/E1/P0/P1 cluster name lookups with dynamic detection that averages all available E-Cluster and P-Cluster entries. This fixes crashes on M3, M4, M5 and any future chips that report different cluster naming conventions.

Tested on Apple M5 Pro.

Replace hardcoded E0/E1/P0/P1 cluster name lookups with dynamic
detection that averages all available E-Cluster and P-Cluster entries.
This fixes crashes on M3, M4, M5 and any future chips that report
different cluster naming conventions.

Tested on Apple M5 Pro.
@yeungtuzi
Copy link
Copy Markdown

macOS 26.4 changed powermetrics return value from "P-Cluster" to "S-Cluster" for m5. I don't know if M1-M4 still using "P-Cluster", can you fix that?

@l0stl0rd
Copy link
Copy Markdown

@akashicMarga I pip installed your branch with the fix and works for me again under macos 26.4, thanks :)
shame the main git does not seem to get updated anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants