This repository was archived by the owner on Apr 6, 2026. It is now read-only.
Introducing a way to builder kernels for Windows platforms#250
Merged
Conversation
Member
Author
|
Example invocation : Local build with kbuilder.ps1 -SourceFolder ./examples/activation -BuildConfig Release -Backend cuda -ArchList 8.9 -Build -LocalInstall -InstallPrefix .\examples\activation\build -ForceLocal build with kbuilder.ps1 -SourceFolder ./examples/activation -BuildConfig Release -Backend cuda -ArchList 8.9 -Build -KernelsInstall -InstallPrefix .\examples\activation\build -Force |
bfd66a9 to
e4a51ea
Compare
danieldk
reviewed
Oct 14, 2025
| Write-Status "Configuring CMake project..." -Type Info | ||
| Push-Location $buildDir | ||
| try { | ||
| $configureArgs = @("..", "-G", "Visual Studio 17 2022", "-A", "x64") |
Member
There was a problem hiding this comment.
Is this the same version Python and PyTorch are compiled with? (Not sure how ABI compat works on Windows)
…l / kernels builds
…uild kernels on Windows hosts
…er XPU version info
…generate necessary code through build2cmake
222dfdf to
579aa92
Compare
danieldk
approved these changes
Oct 16, 2025
Member
|
Really nice to have this, looks great! |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR attempts to replicate what is being done with NixOS on Windows platform through a PowerShell scripts
kbuild.ps1.It leverages
build2cmakeas much as possible and attempts to move some parts currently handle in Nix directly in CMake to avoid dupplication as much as possible (when feasible).It also introduce two CMake functions to automatically generate the layout required by
kernels::get_local_kerneland hub based build, so it easy to debug and publish.