Skip to content

Conversation

mfuntowicz
Copy link
Member

This PR attempts to replicate what is being done with NixOS on Windows platform through a PowerShell scripts kbuild.ps1.

It leverages build2cmake as 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_kernel and hub based build, so it easy to debug and publish.

@mfuntowicz
Copy link
Member Author

mfuntowicz commented Oct 9, 2025

Example invocation :

Local build with kernels::get_local_kernel compatible layout

kbuilder.ps1 -SourceFolder ./examples/activation -BuildConfig Release -Backend cuda -ArchList 8.9 -Build -LocalInstall -InstallPrefix .\examples\activation\build -Force

Local build with kernels remote layout (hub)

kbuilder.ps1 -SourceFolder ./examples/activation -BuildConfig Release -Backend cuda -ArchList 8.9 -Build -KernelsInstall -InstallPrefix .\examples\activation\build -Force

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.

1 participant