Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For Apple silicon, use machdep.cpu.brand_string in preference to deco…
…ding hw.machine This functionality was implemented in pytorch#65 ("Updated package.name to also query machdep.cpu.brand_string if decode of hw.machine fails"), but then it was omitted from the subsequent pytorch#100, probably inadvertently. Adding that functionality back here, so that the package/device name can be shown correctly on recent devices and macOS/iOS versions. Before this change, on MacBook: $ cpu-info ... Warning (cpuinfo): parsing "hw.machine" failed ... Packages: 0: After this change: $ cpu-info ... Debug (cpuinfo): machdep.cpu.brand_string: Apple M2 Pro ... Packages: 0: Apple M2 Pro
- Loading branch information