interplane.Get Omega
Read in your language

omega-kernel-template

aien-dev/omega-kernel-template

Brought by drakestapleton

branch main Branches Tags History

omega-kernel-template / .github / workflows / kernel.yml

46 lines · 1563 bytes Raw Blame History
1# Compile kernel.om with the pinned Omega compiler, run it natively on AArch64 and as
2# SPIR-V on PoCL's CPU device, compare every case with reference.py, publish a receipt.
3# Runs on a free GitHub-hosted ubuntu-24.04-arm runner. No GPU is used.
4name: Omega kernel check
5
6on:
7 push:
8 pull_request:
9 workflow_dispatch:
10
11permissions:
12 contents: read
13
14jobs:
15 kernel:
16 name: kernel.om on AArch64 + SPIR-V (PoCL CPU)
17 runs-on: ubuntu-24.04-arm
18 timeout-minutes: 30
19 steps:
20 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
22 - name: Install Ubuntu packages (OpenCL loader, LLVM 18 runtime, spirv-val)
23 run: |
24 sudo apt-get update -qq
25 sudo apt-get install -y -qq --no-install-recommends \
26 clang-18 libllvm18 libllvmspirvlib18.1 ocl-icd-libopencl1 ocl-icd-opencl-dev spirv-tools
27
28 - name: Fetch the pinned Omega compiler and PoCL (sha256-checked)
29 run: sh tools/fetch.sh
30
31 - name: Check kernel.om
32 run: sh tools/check.sh
33
34 - name: Job summary
35 if: always()
36 run: |
37 if [ -f build/summary.md ]; then cat build/summary.md >> "$GITHUB_STEP_SUMMARY"
38 else echo '## Omega kernel check: no summary (setup failed before the check started)' >> "$GITHUB_STEP_SUMMARY"; fi
39
40 - name: Upload receipt
41 if: always()
42 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
43 with:
44 name: omega-kernel-receipt
45 path: build/receipt/
46 if-no-files-found: warn