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
CUDApp / .github / workflows / host-x86.yml
| 1 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | # x86-64 host CI (issue #196). Runs the portable suite from docs/OMEGA_HOST_TESTS.md |
| 3 | # and builds the x86 freestanding link (mk/omega-gpu-engine.mk) from the generated |
| 4 | # Omega units (src/cudapp_freest_*.c, om/units.sh) with no migration-pending C switch. |
| 5 | # Does not install nvdisasm, clone Omega, or open a GPU. |
| 6 | # The AArch64 host-tests job stays in ci.yml. make test-runtime-api's version bump |
| 7 | # stays in runtime-api.yml (#189). Further host gates for #90 belong in their own |
| 8 | # change, not in this file. GB10 chip tests stay NOT_RUN. |
| 9 | name: host-x86 |
| 10 | on: |
| 11 | pull_request: |
| 12 | push: |
| 13 | branches: [main] |
| 14 | permissions: |
| 15 | contents: read |
| 16 | jobs: |
| 17 | x86-host-tests: |
| 18 | runs-on: ubuntu-24.04 |
| 19 | # The #280 union adds the exhaustive MoE differential (3366 s on one GB10 core) to the |
| 20 | # portable suite; H5 4854037e was cancelled at 120 minutes. PROVISIONAL until an exact-head |
| 21 | # run is measured. |
| 22 | timeout-minutes: 300 |
| 23 | steps: |
| 24 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 25 | with: |
| 26 | persist-credentials: false |
| 27 | - name: Toolchain record |
| 28 | run: | |
| 29 | arch=$(uname -m) |
| 30 | echo "arch $arch" |
| 31 | [ "$arch" = x86_64 ] |
| 32 | gcc --version | head -n 1 |
| 33 | make --version | head -n 1 |
| 34 | echo "CUDAPP_MEM_RESERVE_MIB=0 for the portable suite (docs/OMEGA_HOST_TESTS.md). The default 4096 is unchanged." |
| 35 | echo "GB10: NOT_RUN" |
| 36 | - name: x86 freestanding link |
| 37 | # The runner's bash uses -e -o pipefail, so make's status is captured with `||`. |
| 38 | run: | |
| 39 | rc=0 |
| 40 | make CC=gcc gpu-engine-freestanding > "$RUNNER_TEMP/freestanding.log" 2>&1 || rc=$? |
| 41 | cat "$RUNNER_TEMP/freestanding.log" |
| 42 | [ "$rc" -eq 0 ] || exit "$rc" |
| 43 | for u in revision epoch f16; do |
| 44 | grep -E "/cudapp_freest_$u\.o src/cudapp_freest_$u\.c\$" "$RUNNER_TEMP/freestanding.log" |
| 45 | done |
| 46 | if grep -F -- '-DCUDAPP_MIGRATION_PENDING_C_' "$RUNNER_TEMP/freestanding.log"; then |
| 47 | echo "freestanding link compiled a migration-pending C switch"; exit 1 |
| 48 | fi |
| 49 | line=$(grep -E '^freestanding GPU link \([0-9]+ files\): only .*undefined$' "$RUNNER_TEMP/freestanding.log") |
| 50 | echo "$line" |
| 51 | - name: Portable host suite |
| 52 | env: |
| 53 | CUDAPP_MEM_RESERVE_MIB: "0" |
| 54 | run: | |
| 55 | rc=0 |
| 56 | # tee streams the log so a timeout still shows how far the suite got (H5 was cancelled |
| 57 | # at 120 minutes with no output); with pipefail (the default bash -e shell lacks it), rc is make's status. |
| 58 | set -o pipefail; make CC=gcc -j4 test 2>&1 | tee "$RUNNER_TEMP/make-test.log" || rc=$? |
| 59 | [ "$rc" -eq 0 ] || exit "$rc" |
| 60 | last=$(tail -n 1 "$RUNNER_TEMP/make-test.log") |
| 61 | case $last in |
| 62 | "CUDA++ HOST TESTS PASS ("*" targets)") echo "$last" ;; |
| 63 | *) echo "make test exited 0 without the final CUDA++ HOST TESTS PASS line"; exit 1 ;; |
| 64 | esac |
| 65 | echo "GB10: NOT_RUN" |