Add jiqing-feng to the vouch list #1302
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" | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened] # trigger on PRs | |
| paths-ignore: | |
| - "docs/**" | |
| - "*.md" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build kernels (${{ matrix.arch }}) | |
| strategy: | |
| matrix: | |
| include: | |
| - arch: x86_64-linux | |
| runner: aws-highmemory-32-plus-nix | |
| - arch: aarch64-linux | |
| runner: aws-r8g-8xl-plus-nix | |
| runs-on: | |
| group: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 | |
| with: | |
| extra-conf: | | |
| max-jobs = 8 | |
| cores = 12 | |
| sandbox-fallback = false | |
| - uses: cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17 | |
| with: | |
| name: huggingface | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| env: | |
| USER: runner | |
| - name: Nix info | |
| run: nix-shell -p nix-info --run "nix-info -m" | |
| - name: Build all example kernels | |
| run: nix build -L ./examples/kernels#ci-build-cuda | |
| - name: Copy kernel artifacts | |
| run: cp -rL result/* . | |
| - name: Upload kernel artifacts | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: built-kernels-${{ matrix.arch }} | |
| path: | | |
| activation-kernel | |
| cpp20-symbols-kernel | |
| cutlass-gemm-kernel | |
| cutlass-gemm-tvm-ffi-kernel | |
| extra-data | |
| relu-kernel | |
| relu-torch-stable-abi-kernel | |
| relu-tvm-ffi-kernel | |
| relu-kernel-cpu | |
| relu-backprop-compile-kernel | |
| silu-and-mul-kernel | |
| test: | |
| name: Test kernels (UBI ${{ matrix.ubi_version }}) | |
| needs: build | |
| strategy: | |
| matrix: | |
| ubi_version: [8, 9] | |
| runs-on: | |
| group: aws-g6-12xlarge-plus | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Download kernel artifacts | |
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 | |
| with: | |
| name: built-kernels-x86_64-linux | |
| path: . | |
| - name: Build Docker image | |
| run: | | |
| docker build \ | |
| -t kernel-builder:ubi${{ matrix.ubi_version }} \ | |
| --build-arg UBI_VERSION=${{ matrix.ubi_version }} \ | |
| -f nix-builder/tests/Dockerfile.test-kernel . | |
| - name: Run Tests | |
| run: | | |
| docker run --gpus all kernel-builder:ubi${{ matrix.ubi_version }} |