pytorch / cpuinfo

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

cpuinfo causes crash on AWS Lambda with arm64 processor #76

Open jcreinhold opened 2 years ago

jcreinhold commented 2 years ago

This is a cross-post of the issue here: https://github.com/microsoft/onnxruntime/issues/10038

ONNX Runtime uses cpuinfo to "detect hybrid cores and SDOT UDOT instruction support"; however, when used on the arm64 (Graviton2) processors, it fails with error message:

Error in cpuinfo: failed to parse the list of possible processors in /sys/devices/system/cpu/possible
Error in cpuinfo: failed to parse the list of present processors in /sys/devices/system/cpu/present

I'm happy to provide more detail, although I'm unsure how exactly ONNX Runtime uses cpuinfo.

michal-sankot commented 10 months ago

i'd say it's a duplicate of https://github.com/pytorch/cpuinfo/issues/143