[Build] Fix Windows ARM64 CUDA plugin build - #31617
Merged
Merged
Conversation
baijumeswani
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. Becauseonnxruntime_BUILD_UNIT_TESTSdefaults to ON, the job still buildsonnxruntime_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 unusedonnxruntime_mlas_testtarget:CL.exeexited with code57005(0xDEAD) duringtest_sqnbitgemm_2bit.cpp.This change sets
onnxruntime_BUILD_UNIT_TESTS=OFFonly 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:
git diff --checkpassed.