Enable Windows on ARM CUDA target - #799
Open
mfuntowicz wants to merge 1 commit into
Open
Conversation
mfuntowicz
force-pushed
the
feat/windows-on-arm-backend-cuda
branch
from
August 31, 2026 13:48
2741398 to
e06c763
Compare
Member
Author
|
Example output: |
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.
Summary
This PR enables building the CUDA backend for Windows on Arm by adding a target architecture option to the Windows builder, plus a small CMake fix required by newer CUDA toolkits.
Previously, builder.ps1 always derived the build architecture from the host process architecture, making it impossible to cross-compile ARM64 binaries from an x64 machine. This PR introduces an explicit -TargetArch parameter so the CUDA backend can now be built natively on ARM64 machines or cross-compiled from x64 hosts.
Changes
kernel-builder/src/pyproject/templates/torch/preamble.cmake
Usage
Native ARM64 build on an ARM64 machine
.\builder.ps1 -SourceFolder ./examples/relu -Backend cuda -TargetArch ARM64 -ArchList "12.1" -BuildCross-compile from an x64 host
.\builder.ps1 -SourceFolder ./examples/relu -Backend cuda -TargetArch ARM64 -ArchList "12.1" -BuildNotes