Skip to content

style: format all CUDA source files with clang-format-17 #15

style: format all CUDA source files with clang-format-17

style: format all CUDA source files with clang-format-17 #15

Workflow file for this run

# Continuous Integration
# Validates code formatting and CUDA compilation
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
format-check:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check formatting
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '17'
check-path: '.'
exclude-regex: '(^|/)(build|third_party|external|vendor|\.git|\.kiro)(/|$)'
fallback-style: 'LLVM'
cuda-build:
name: CUDA Build
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.4.1-devel-ubuntu22.04
steps:
- name: Install dependencies
run: apt-get update && apt-get install -y cmake git build-essential
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES="70;75;80;86;89;90"
- name: Build
run: cmake --build build --target sgemm_benchmark -j2 --verbose
- name: Info
run: |
echo "✅ CUDA compilation successful"
echo "ℹ️ GPU runtime tests require a CUDA-capable machine"