ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

MacOS ARM support #69

Closed Frost-54 closed 1 year ago

Frost-54 commented 1 year ago

Since cpuid for arm is not usable in user space, these features are only implemented for mac. Summary: Remove cpuid when compiling for arm. Rewrite supported_instruction_sets to detect arm features. Rewrite vendor_id using sysctl. Use Metal to detect GPU features by default.

nabijaczleweli commented 1 year ago

Applied with editorial as fd28a9e967c15ec92557afcb2ec08e7deb6f1a85, thanks!