Skip to content

Enhancement: Refactoring Windows ARM64 - CPU Detection Logic #270

@ozanMSFT

Description

@ozanMSFT

Current source code supports some pre-defined chips by hardcoded definitions:

https://github.com/pytorch/cpuinfo/blob/main/src/arm/windows/init.c

Currently information is stored in:

woa_chip_info woa_chips[woa_chip_name_last]


It would be better to add capability to detect new chips without breaking existing implementation.

Otherwise, this will generate "Unknown CPU" warning/error message for the all undefined ARM64 chips.


Example error/warning messages:

Error in cpuinfo: Unknown chip model name 'Snapdragon(R) CPU'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions