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 #12
Workflow file for this run
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
| name: "Build and test kernel - Windows" | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened] # trigger on PRs | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ windows-2022 ] | |
| python: [ '3.12', '3.13' ] | |
| name: Build kernel | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/cache@v4 | |
| with: | |
| key: cuda-toolkit-${{ matrix.version }}-${{ matrix.os }} | |
| path: | | |
| C:\Program Files\NVIDIA GPU Computing Toolkit | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| - uses: actions/checkout@v5 | |
| # CUDA environment setup | |
| - uses: N-Storm/[email protected] | |
| id: setup-cuda-toolkit | |
| with: | |
| cuda: '12.9.1' # TODO(mfuntowicz): How can we test multiple CUDA versions than align with torch? | |
| - name: "NVCC checks" | |
| run: nvcc -V | |
| # Rust build environment setup | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| profile: minimal | |
| override: true | |
| - name: Build build2cmake | |
| run: ( cd build2cmake && cargo build --release ) | |
| # Python environment setup | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| cache: 'pip' | |
| - name: Install PyTorch | |
| run: pip install --index-url https://download.pytorch.org/whl/cu129 | |
| - name: Build activation kernel | |
| run: ( .\build-driver\kbuilder.ps1 -SourceFolder examples/activation -BuildConfig Release -Backend cuda -Build -Force ) | |
| # - name: Copy activation kernel | |
| # run: cp -rL examples/activation/build activation-kernel |