microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.08k stars 2.84k forks source link

[ARM][CPU] Unit test and onnx_runtime_perf test gives cpuinfo error for new Windows ARM chips #21393

Open mrsabhar opened 1 month ago

mrsabhar commented 1 month ago

Describe the issue

Compiling with unit test enabled or running simile resnet50 through onnxruntime_perf_test gives cpuinfo error.

Error in cpuinfo: Unknown chip model name 'Snapdragon(R) X Elite - X1E78100 - Qualcomm(R) Oryon(TM) CPU'.

To reproduce

Compile latest onnxruntime (main branch) with below command line image

or using default command (CPU only) with arm64 option.

Don't see this issue when running through win-x64 binaries on ARM64.

Several unit test fails with error image

This issue also happens with prebuild package - https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.QNN

Running onnxruntime_perf_test on Asus X Elite targeted for CPU -

image

Urgency

No response

Platform

Windows

OS Version

Windows 11 Home 10.0.26100

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

https://github.com/microsoft/onnxruntime/commit/80b56feb412f7b9a637efee5ab2f31d00ec07643

ONNX Runtime API

C++

Architecture

ARM64

Execution Provider

Default CPU

Execution Provider Library Version

No response

snnn commented 1 month ago

As the message says, the following file needs to be updated to include this new CPU support:

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

snnn commented 1 month ago

Would you mind submitting an issue to https://github.com/pytorch/cpuinfo ?