-
Notifications
You must be signed in to change notification settings - Fork 40
119 lines (104 loc) · 5.74 KB
/
Copy pathgalp.yaml
File metadata and controls
119 lines (104 loc) · 5.74 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# ────────────────────────────────────────────────────────
# | FastLanes |
# ────────────────────────────────────────────────────────
# .github/workflows/galp.yaml
# ────────────────────────────────────────────────────────
# .github/workflows/galp.yml
name: GALP
run-name: >-
${{ github.workflow }} on ${{ github.ref_name }} (#${{ github.run_number }})
— ${{ github.event.pull_request.title || github.event.head_commit.message }}
on:
push:
permissions:
contents: read
jobs:
president-build-test:
if: ${{ github.actor == 'azimafroozeh' }}
name: CMake CI on president
runs-on:
- self-hosted
- Linux
- X64
- president
steps:
# ────────────────────────────────────────────────
# 0. Checkout
# ────────────────────────────────────────────────
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 0
# ────────────────────────────────────────────────
# 0a. Generate synthetic dataset
# ────────────────────────────────────────────────
- name: Generate synthetic dataset
uses: ./.github/actions/generate-dataset
# ────────────────────────────────────────────────
# 1. Quick sanity of the runner
# ────────────────────────────────────────────────
- name: 🔎 Env dump
run: |
set -x
hostname
echo "Runner label: president"
echo "CUDA path: $CUDA_LIBRARY_PATH"
echo "NVCOMP_INC: $NVCOMP_INC"
echo "NVCOMP_LIB: $NVCOMP_LIB"
which nvidia-smi || true
which nvcc || true
which clang++ || true
which g++ || true
which cmake || true
which make || true
# ────────────────────────────────────────────────
# 2. Verify required tools
# ────────────────────────────────────────────────
- name: ✅ Verify tools
run: |
for cmd in nvidia-smi nvcc clang++ g++ cmake make; do
command -v "$cmd" >/dev/null || { echo "::error::$cmd missing"; exit 127; }
done
- name: Version outputs
run: |
nvidia-smi
nvcc --version
clang++ --version
g++ --version
cmake --version
make --version
# ────────────────────────────────────────────────
# 3. Configure with CMake
# ────────────────────────────────────────────────
- name: 🔄 CMake configure
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release \
-DFLS_ENABLE_GALP_TESTING_AND_BENCHMARKING=ON
# ────────────────────────────────────────────────
# 4. Build (all targets)
# ────────────────────────────────────────────────
- name: 🏗️ Build
run: cmake --build build --parallel
# ────────────────────────────────────────────────
# 5. Run unit tests
# ────────────────────────────────────────────────
- name: 🧪 Run tests
run: |
cd build
ctest --output-on-failure
# ────────────────────────────────────────────────
# 6. Run benchmarks (no label filter)
# ────────────────────────────────────────────────
- name: ⚡ Run benchmarks
run: |
cd build
ctest --output-on-failure || true
# ────────────────────────────────────────────────
# 7. Smoke‑test helper binaries
# ────────────────────────────────────────────────
- name: 🚀 Smoke‑test binaries
run: |
./build/galp/benchmark/micro-benchmarks --help || true
./build/galp/benchmark/compressors-benchmarks --help || true
shell: bash