feat: add debug to StarkEngineV2
#780
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: Lint Workspace | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["**"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: | |
| - runs-on=${{ github.run_id }}/runner=8cpu-linux-arm64 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| env: | |
| RUSTUP_PERMIT_COPY_RENAME: "1" | |
| - uses: codespell-project/actions-codespell@v2 | |
| with: | |
| skip: Cargo.lock | |
| ignore_words_file: .codespellignore | |
| path: "crates/" | |
| - name: Run fmt | |
| run: | | |
| rustup install nightly | |
| rustup component add --toolchain nightly rustfmt | |
| # don't use --all to only format default-members of workspace | |
| cargo +nightly fmt -- --check | |
| - name: Run clippy | |
| run: | | |
| # list of features generated using: | |
| # echo -e "\033[1;32mAll unique features across workspace:\033[0m" && cargo metadata --format-version=1 --no-deps | jq -r '.packages[].features | to_entries[] | .key' | sort -u | sed 's/^/• /' | |
| # don't include feature=touchemall because that is cuda-only | |
| cargo clippy --all-targets --tests --features "default mimalloc nightly-features parallel prometheus" -- -D warnings | |
| cargo clippy --all-targets --tests --no-default-features --features "jemalloc jemalloc-prof" -- -D warnings | |
| - name: Cargo audit | |
| run: | | |
| cargo install --locked cargo-audit | |
| cargo audit | |
| lint-cuda: | |
| name: Lint CUDA | |
| runs-on: | |
| - runs-on=${{ github.run_id }}/runner=test-gpu-nvidia | |
| steps: | |
| - uses: runs-on/action@v2 | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| env: | |
| RUSTUP_PERMIT_COPY_RENAME: "1" | |
| - uses: ./.github/actions/rust-cache-cuda | |
| - name: Verify CUDA setup | |
| run: | | |
| nvidia-smi | |
| nvidia-smi -L | |
| nvcc --version | |
| - name: Run fmt | |
| working-directory: crates | |
| run: | | |
| rustup install nightly | |
| rustup component add --toolchain nightly rustfmt | |
| cargo +nightly fmt --all -- --check | |
| - name: Run clippy | |
| run: | | |
| cargo clippy --all-targets --all --tests --features "default mimalloc nightly-features parallel prometheus touchemall" -- -D warnings | |
| cargo clippy --all-targets --all --tests --no-default-features --features "jemalloc jemalloc-prof" -- -D warnings | |
| - name: Run clang-tidy | |
| run: | | |
| set -eux | |
| wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc >/dev/null | |
| echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-21 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain.list | |
| sudo apt-get update | |
| sudo apt-get install -y clang-tidy-21 | |
| clang-tidy --version | |
| python3 ci/scripts/run-clang-tidy.py crates/cuda-backend/cuda/src --clang-tidy clang-tidy-21 --include crates/cuda-backend/cuda/include --include crates/cuda-backend/cuda/supra/include --include crates/cuda-common/include |