pytorch / cpuinfo

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

[arm] fix the logic for identifying the valid processors #197

Closed snadampal closed 8 months ago

snadampal commented 8 months ago

The current logic for valid processor detection is reporting all cpus irrespective of whether they are online or not. so, it's causing thread over-subscription for the scenarios where the online cpu count < the actual cpus. This is fixed by publishing only the online cpu count as the valid processors.

snadampal commented 8 months ago

appreciate if someone can review this PR?