Skip to content

[CI] Enable Windows ARM64 wheels - #691

Open
vortex-captain wants to merge 13 commits into
apache:mainfrom
chinazhangchao:chao_windowsarm64_fix
Open

[CI] Enable Windows ARM64 wheels#691
vortex-captain wants to merge 13 commits into
apache:mainfrom
chinazhangchao:chao_windowsarm64_fix

Conversation

@vortex-captain

@vortex-captain vortex-captain commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • add a native Windows ARM64 job to the tvm-ffi wheel publishing matrix
  • enable the ARM64 target in cibuildwheel on Windows
  • select the MSVC developer environment from the running Python architecture so JIT extensions compile for ARM64 rather than x64
  • install the Windows ARM64 PyTorch nightly from NVIDIA before running wheel tests
  • enable prerelease resolution and bypass the upload-date cutoff for that target because the NVIDIA nightly index does not expose upload timestamps

Following maintainer feedback, this PR enables and tests the core tvm-ffi Windows ARM64 wheel without changing the separate torch-c-dlpack-ext wheel workflow.

Validation

  • Windows ARM64 publish job: 465/465 C++ tests passed
  • CPython 3.12 ARM64: 2414 passed, 44 skipped, 3 xfailed
  • CPython 3.13 ARM64: 2416 passed, 42 skipped, 3 xfailed
  • CPython 3.14t ARM64: 2418 passed, 40 skipped, 3 xfailed
  • Windows AMD64, Linux x86_64/ARM64, and macOS ARM64 wheel jobs passed
  • synchronized the branch with current main
  • installed torch 2.15.0.dev20260904+cu134 from NVIDIA’s nightly index on native Windows ARM64
  • Torch tensor, DLPack, and optional-extension tests: 27 passed, 1 skipped
  • Windows ARM64 inline C++ build test passed
  • applicable changed-file lint hooks passed

Follow-up

Replace the NVIDIA nightly override with the official PyTorch distribution source once stable Windows ARM64 wheels are available.

chinazhangchao and others added 6 commits July 24, 2026 15:23
…sion

- Fix Python library path detection in _build_optional_torch_c_dlpack.py to
  also check for versioned Python library (e.g. python312.lib) in addition to
  the major-only name (python3.lib). Some Python distributions like nuget-cpython
  (used by cibuildwheel on Windows) only provide the versioned library. When only
  the versioned library is found, explicitly add it to linker flags so pybind11's
  #pragma comment directive can resolve correctly.

- Fix test_optional_torch_c_dlpack.py to use platform-appropriate library
  extension: .dll on Windows, .so elsewhere. Previously hardcoded .so caused
  test failures on Windows even when build succeeded.
…ilure

Fix Windows wheel build: versioned Python lib detection and .dll extension
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@tqchen

tqchen commented Jul 28, 2026

Copy link
Copy Markdown
Member

good to understand usecases, likely we will align with pytorch on availability of win arm64 wheel

@vortex-captain
vortex-captain marked this pull request as draft August 13, 2026 07:54
@contentis

Copy link
Copy Markdown

good to understand usecases, likely we will align with pytorch on availability of win arm64 wheel

WoA CUDA support is to be added with Torch 2.14 release. There are nightlies in the nvidia index for now https://pypi.nvidia.com/nvtorch_oot_nightly/

@tqchen

tqchen commented Aug 21, 2026

Copy link
Copy Markdown
Member

get it, likely we don't need torch c ext for windows arm64 since torch314 already comes with the functions we need, we can try enable tvm-ffi cibw wheel

chinazhangchao and others added 3 commits September 8, 2026 17:45
Keep the PR focused on core tvm-ffi wheels and leave the optional torch C extension workflow unchanged, following maintainer feedback.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Install PyTorch from NVIDIA's Windows ARM64 nightly index before cibuildwheel tests. Allow prereleases and bypass the upload-date cutoff because the nightly index does not expose upload timestamps.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@vortex-captain
vortex-captain marked this pull request as ready for review September 9, 2026 01:56
@vortex-captain

Copy link
Copy Markdown
Author

@tqchen @contentis comments addressed, please help review, thanks!

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.

5 participants