Skip to content

Upgrade spiceai/candle to upstream 0.10.1 #22

Upgrade spiceai/candle to upstream 0.10.1

Upgrade spiceai/candle to upstream 0.10.1 #22

Workflow file for this run

name: CI / cuda
on:
workflow_dispatch:
pull_request:
jobs:
test-cuda:
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
runs-on: ubuntu-gpu-t4-4-core
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
permissions:
contents: write
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
security-events: write
env:
CUDA_COMPUTE_CAP: 75
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup CUDA toolkit
run: |
# The GPU runner image has CUDA pre-installed, just ensure PATH is set
if command -v nvcc &>/dev/null; then
echo "CUDA already available: $(nvcc --version | grep release)"
elif [ -d /usr/local/cuda ]; then
echo "/usr/local/cuda/bin" >> $GITHUB_PATH
echo "CUDA found at /usr/local/cuda"
else
echo "Installing CUDA toolkit..."
sudo apt-get update
sudo apt-get install -y cuda-toolkit-12-6
echo "/usr/local/cuda-12.6/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/usr/local/cuda-12.6/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
fi
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y curl build-essential libssl-dev protobuf-compiler pkg-config
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Test (cuda)
run: cargo test --features cuda