pytorch / cpuinfo

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

Ampere(R) Altra(R) Processor - CPU Detection Error #236

Closed ozanMSFT closed 5 months ago

ozanMSFT commented 5 months ago

Summary:

PR 220 has introduced an index problem that is preventing the retrieval of correct CPU information for Windows ARM64 systems using Ampere(R) Altra(R) Processor.

Found by: @iremyux


Details:

The main reason is the incompatibility between woa_chip_name (windows-arm-init.h) and woa_chips[] (init.c).

Since woa_chip_name_microsoft_sq_3 is duplicated, this for loop is not reaching the Ampere(R) Altra(R) Processor element in the array due to wrong size.


Error:

"Unknown chip model name 'Ampere(R) Altra(R) Processor'.
Please add new Windows on Arm SoC/chip support to arm/windows/init.c!"

cc: @iremyux, @malfet