pytorch / cpuinfo

CPU INFOrmation library (x86/x86-64/ARM/ARM64, Linux/Windows/Android/macOS/iOS)
BSD 2-Clause "Simplified" License
962 stars 306 forks source link

Why do we need 'get_system_info_from_registry' for ARM64 device? #245

Open quic-zhanweiw opened 1 month ago

quic-zhanweiw commented 1 month ago

Why do we need to read the register key 'HARDWARE\DESCRIPTION\System\CentralProcessor\0' and compare it with the data in the array 'woa_chips'? Only Windows On ARM devices have this code. This is not friendly to the compatibility of new Windows On ARM devices.

https://github.com/pytorch/cpuinfo/blob/3c8b1533ac03dd6531ab6e7b9245d488f13a82a5/src/arm/windows/init.c#L154