Skip to content

Disable cpuinfo on Windows ARM64 - #377

Closed
ssss141414 wants to merge 1 commit into
google:masterfrom
ssss141414:windows-arm64-no-cpuinfo
Closed

Disable cpuinfo on Windows ARM64#377
ssss141414 wants to merge 1 commit into
google:masterfrom
ssss141414:windows-arm64-no-cpuinfo

Conversation

@ssss141414

Copy link
Copy Markdown

Summary

  • disable the optional cpuinfo integration when targeting native Windows ARM64
  • use Ruy's existing conservative cache parameters and platform-based ARM64 path detection

Why

The vendored cpuinfo configuration reports that Windows ARM64 is unsupported and omits the ARM ISA data symbol, while Ruy still defines RUY_HAVE_CPUINFO. Linking an ARM64 consumer then fails with:

ruy_cpuinfo.lib(cpuinfo.obj): error LNK2019: unresolved external symbol cpuinfo_isa referenced in ruy::CpuInfo::NeonDotprod()

Ruy already supports builds without cpuinfo on other platforms. This change limits that existing fallback to Windows ARM64 and leaves all other targets unchanged.

Validation

Validated in a native Windows ARM64 CTranslate2 build using Ruy: the dependency links successfully, INT8 multithreaded inference returns the expected output, and the resulting DLL is native ARM64.

@google-cla

google-cla Bot commented Aug 21, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant