Skip to content

[Build] Fix Windows ARM64 CUDA plugin build - #31617

Merged
tianleiwu merged 1 commit into
mainfrom
tlwu/202608093/win-arm64-cuda-plugin-build
Aug 4, 2026
Merged

[Build] Fix Windows ARM64 CUDA plugin build#31617
tianleiwu merged 1 commit into
mainfrom
tlwu/202608093/win-arm64-cuda-plugin-build

Conversation

@tianleiwu

@tianleiwu tianleiwu commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

The Windows ARM64 CUDA plugin packaging job passes --skip_tests, but that option skips test execution only; it does not disable generation and compilation of unit-test targets. Because onnxruntime_BUILD_UNIT_TESTS defaults to ON, the job still builds onnxruntime_mlas_test.

In the failing CI run, the MLAS library itself compiled and linked successfully, including sqnbitgemm_kernel_avx512_2bit.cpp. The later failure was an ARM64 MSVC compiler crash while compiling the unused onnxruntime_mlas_test target: CL.exe exited with code 57005 (0xDEAD) during test_sqnbitgemm_2bit.cpp.

This change sets onnxruntime_BUILD_UNIT_TESTS=OFF only for the Windows ARM64 CUDA plugin packaging job. The CUDA plugin and MLAS library are still built, and the existing plugin binary verification remains enabled; only unit-test targets that are not run by this packaging job are excluded.

Note: A more complete fix is to split sqnbitgemm_kernel_avx512_2bit.cpp into multiple files.

Validation:

  • YAML parsed successfully.
  • Confirmed the define is present only in the ARM64 CUDA plugin build block.
  • git diff --check passed.
  • Windows ARM64 CI build remains to be verified by this PR.

@tianleiwu tianleiwu changed the title ci: fix Windows ARM64 CUDA plugin build [Build] Fix Windows ARM64 CUDA plugin build Aug 4, 2026
@tianleiwu
tianleiwu merged commit edb8580 into main Aug 4, 2026
87 checks passed
@tianleiwu
tianleiwu deleted the tlwu/202608093/win-arm64-cuda-plugin-build branch August 4, 2026 03:00
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.

2 participants