cpuinfo icon indicating copy to clipboard operation
cpuinfo copied to clipboard

Add fallback for ARM Windows fp16 detection.

Open edgchen1 opened this issue 1 month ago • 3 comments

Background: On a Windows ARM system, I observed that cpuinfo_has_arm_fp16_arith() started to return false after upgrading to a more recent cpuinfo version.

In #333, the initialization of cpuinfo_isa.fp16arith was updated to use IsProcessorFeaturePresent(PF_ARM_V82_FP16_INSTRUCTIONS_AVAILABLE). I suspect that this is not supported on older Windows versions.

This change adds a fallback path to set cpuinfo_isa.fp16arith the old way. https://github.com/pytorch/cpuinfo/blob/d3a86a813e2bb49d1eb5841ec12e2b135867ab98/src/arm/windows/init.c#L205-L208

edgchen1 avatar Nov 21 '25 18:11 edgchen1