Skip to content

Add GitHub Actions workflows to test GPU runner access #1

Add GitHub Actions workflows to test GPU runner access

Add GitHub Actions workflows to test GPU runner access #1

name: Test GPU Runner Access
# Simple workflow to test if GitHub provides GPU runners for open source projects
# This tests various possible runner labels
on:
workflow_dispatch:
push:
branches: [ proton ]
jobs:
# Test 1: Try standard GitHub GPU runner label (if it exists)
test-gpu-runner-standard:
runs-on: ubuntu-latest-gpu
continue-on-error: true
steps:
- name: Check GPU
run: |
echo "Testing ubuntu-latest-gpu runner"
nvidia-smi || echo "No GPU found"
# Test 2: Try 4-core GPU runner
test-gpu-runner-4core:
runs-on: ubuntu-latest-4-cores-gpu
continue-on-error: true
steps:
- name: Check GPU
run: |
echo "Testing ubuntu-latest-4-cores-gpu runner"
nvidia-smi || echo "No GPU found"
# Test 3: Try larger runner with GPU
test-gpu-runner-large:
runs-on: ubuntu-22.04-16core-gpu
continue-on-error: true
steps:
- name: Check GPU
run: |
echo "Testing ubuntu-22.04-16core-gpu runner"
nvidia-smi || echo "No GPU found"
# Test 4: Fallback - standard runner (always works)
test-standard-runner:
runs-on: ubuntu-latest
steps:
- name: Info
run: |
echo "Standard runner (no GPU expected)"
echo ""
echo "=== CPU Info ==="
lscpu | grep "Model name"
echo ""
echo "=== Memory ==="
free -h
echo ""
echo "=== Check for GPU ==="
lspci | grep -i nvidia || echo "No NVIDIA GPU found (expected on standard runner)"
echo ""
echo "=== Summary ==="
echo "If you see this, at least the standard runner works!"
echo "Check the other jobs to see if GPU runners are available."