interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / .github / workflows / runtime-api.yml

42 lines · 2323 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2# Runtime API gate (Bar C2, docs/runtime/API.md section 2; #189): the manifest against the headers, the public-surface
3# check, the version-bump check against the base branch, and every negative control of both.
4# Host only, on a GitHub-hosted runner with no GB10 and no CUDA toolkit. Chip execution is a separate step and is
5# NOT_RUN. `make test` in ci.yml (and the x86-64 host-tests job, #196) also lists test-runtime-api; neither runs
6# test-runtime-api-semver against the pull request base. This file does not replace those jobs.
7name: runtime-api
8on:
9 pull_request:
10 push:
11 branches: [main]
12permissions:
13 contents: read
14jobs:
15 runtime-api:
16 runs-on: ubuntu-24.04-arm
17 timeout-minutes: 15
18 steps:
19 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20 with:
21 persist-credentials: false
22 fetch-depth: 0
23 - name: Toolchain record
24 run: gcc --version | head -n 1 && make --version | head -n 1 && perl -v | sed -n 2p
25 - name: Manifest, surface and negative controls
26 # the same command the CUDAPP-RUNTIME-API gate runs (tests/gates/cudapp-runtime-api.gate): make
27 # test-runtime-api, then a final RESULT: PASS line from the negative controls and one from the real tree
28 run: tests/gates/cudapp-run.sh runtime-api
29 - name: GB10 sm_121 chip execution (NOT_RUN)
30 run: |
31 printf '%s\n' "GB10 sm_121 chip execution: NOT_RUN (host manifest check only; /dev/nvidia0, /dev/nvidia-uvm and /dev/aien-gpu stay closed)" | tee -a "$GITHUB_STEP_SUMMARY"
32 - name: Version bump against the base
33 env:
34 BASE_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
35 run: |
36 if [ -z "$BASE_SHA" ] || [ "$BASE_SHA" = 0000000000000000000000000000000000000000 ] || ! git cat-file -e "$BASE_SHA^{commit}"; then
37 echo "FAIL: no base commit to compare with ($BASE_SHA)"; exit 1
38 fi
39 if ! git cat-file -e "$BASE_SHA:docs/runtime/omega_runtime_api.manifest" 2>/dev/null; then
40 echo "base $BASE_SHA has no manifest: nothing to compare (NOT_RUN)"; exit 0
41 fi
42 make test-runtime-api-semver RUNTIME_API_BASE="$BASE_SHA"