mirror of
https://github.com/jafioti/luminal.git
synced 2026-06-01 21:49:47 +09:00
precommit
This commit is contained in:
21
.github/workflows/test-cuda.yml
vendored
21
.github/workflows/test-cuda.yml
vendored
@@ -11,6 +11,27 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
cuda_clippy:
|
||||
name: Cuda Clippy
|
||||
runs-on: cuda_t4_runner
|
||||
container:
|
||||
image: ghcr.io/luminal-ai/luminal-docker:cuda
|
||||
options: --gpus all
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install pre-commit
|
||||
run: python3 -m pip install pre-commit
|
||||
- name: Update Rust toolchain
|
||||
run: rustup update
|
||||
- name: Detect GPU compute capability
|
||||
run: |
|
||||
CAP=$(nvidia-smi --query-gpu=compute_cap --format=csv,noheader | head -1 | tr -d '.')
|
||||
echo "CUDA_COMPUTE_CAP=${CAP}" >> "$GITHUB_ENV"
|
||||
- name: Run CUDA clippy hook
|
||||
run: pre-commit run --hook-stage manual cargo-clippy-cuda-lite --all-files
|
||||
|
||||
cuda_unit_test:
|
||||
name: Cuda Unit Tests
|
||||
runs-on: cuda_t4_runner
|
||||
|
||||
Reference in New Issue
Block a user