-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (64 loc) · 1.7 KB
/
ci.yml
File metadata and controls
75 lines (64 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Continuous Integration
# Validates code formatting and CUDA compilation
name: CI
on:
push:
branches: [master]
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'index.md'
- '_config.yml'
- 'openspec/**'
pull_request:
branches: [master]
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'index.md'
- '_config.yml'
- 'openspec/**'
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.14.0
with:
clang-format-version: '17'
fallback-style: 'LLVM'
cuda-build:
name: CUDA Build
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.4.1-devel-ubuntu22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends cmake git build-essential
rm -rf /var/lib/apt/lists/*
- 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 -j$(nproc)
- name: Info
run: |
echo "✅ CUDA compilation successful"
echo "ℹ️ Supported architectures: sm_70, sm_75, sm_80, sm_86, sm_89, sm_90"
echo "ℹ️ GPU runtime tests require a CUDA-capable machine"