Skip to content

feat: add provable params #399

feat: add provable params

feat: add provable params #399

Workflow file for this run

name: CUDA Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
- "crates/**"
- ".github/workflows/tests-cuda.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Ctarget-cpu=native
jobs:
cuda-backend:
name: cuda-backend crate tests and examples
runs-on:
- runs-on=${{ github.run_id }}/runner=test-gpu-nvidia
steps:
- uses: runs-on/action@v2
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: ./.github/actions/rust-cache-cuda
- uses: taiki-e/install-action@nextest
- name: Verify GPU setup
run: |
nvidia-smi
nvidia-smi -L
nvcc --version
- name: Setup CUDA environment
run: |
# Find the actual CUDA library location
CUDART_PATH=$(find /usr/local -name "libcudart.so" | head -1)
if [ -n "$CUDART_PATH" ]; then
CUDA_LIB_DIR=$(dirname "$CUDART_PATH")
echo "CUDA libraries found at: $CUDA_LIB_DIR"
echo "CUDA_LIB_DIR=$CUDA_LIB_DIR" >> $GITHUB_ENV
else
echo "CUDA libraries not found!"
exit 1
fi
- name: Run cuda-common tests
working-directory: crates/cuda-common
run: cargo nextest run
- name: Run cuda-common ignored tests (OOM)
working-directory: crates/cuda-common
run: cargo nextest run --run-ignored ignored-only
- name: Run cuda-backend tests
working-directory: crates/cuda-backend
run: cargo nextest run
- name: Run cuda-backend examples
working-directory: crates/cuda-backend
run: |
cargo run --release --example trace_committer
cargo run --release --example fibonacci
NUM_THREADS=3 NUM_TASKS=10 cargo run --release --example keccakf