Skip to content

Benchmarks (GPU)

Benchmarks (GPU) #8

Workflow file for this run

name: Benchmarks (GPU)
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * 0" # weekly on Sunday
jobs:
benchmarks:
name: Run benchmarks (requires GPU runner)
runs-on: [self-hosted, linux, x64, gpu]
steps:
- uses: actions/checkout@v4
- name: Show GPU info
run: |
nvidia-smi
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install deps
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install -e .
- name: Build native library
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
- name: Run benchmarks
run: |
python bench/run_benchmarks.py --out bench-results.json
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: bench-results
path: bench-results.json