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 / evidence / QMD-CLEAN-OUTPUT-20261029 / README.md

74 lines · 3636 bytes Raw Blame History Rendered
1# QMD standalone clean-output build repair
2
3## Scope and identity
4
5This is a host-only build-rule follow-up to CUDApp #178.
6The production QMD builder, its shared-memory cap, existing C test assertions,
7public APIs and historical receipts are unchanged.
8
9Base: `b348277e4383ab1f37f45bb702ea7d4fb4363782`.
10The tested replacement Makefile has Git blob
11`609a004ab095dec51a7d5ef1d319d07a30425976` and SHA-256
12`105e81766f32584be8d8730d3b7e54a0132bdad1828248d64519736383ef7203`.
13
14Local validation used a source-bounded fixture, not a full repository checkout:
15the exact Makefile, all mk/ include files, and these unchanged source blobs
16were fetched from the base and their Git blob identities checked.
17
18- `src/omega_blackwell_qmd.c`: `dd13ec5a2c0d712627240afa8b1151e45643cd06`
19- `src/omega_blackwell_qmd.h`: `1d56f1a9198ee0e7f8d18f2712207b7a6c37b21a`
20- `tests/test_omega_bw_qmd_shared.c`: `ea877dbe92010691daed3ea4ffa2dd31e9700ffb`
21
22Machine: Linux x86_64. Measured tool versions: GNU Make 4.4.1,
23GCC 14.2.0, Python 3.12.14.
24
25## Defect and repair
26
27The standalone test target did not depend on its output directory.
28With an absent OUT_DIR, compilation failed while opening the dependency file.
29Other host targets could create the directory first and hide this defect.
30
31The repair adds the existing OUT_DIR rule as an order-only prerequisite.
32The retained `test-gpu-qmd-shared-clean-build` regression creates a temporary
33parent, leaves its child output directory absent, and invokes the ordinary
34host-only QMD test target with that child as OUT_DIR. It is in HOST_TESTS.
35The recipe propagates failures and removes its own temporary directory.
36
37## Measured host outcomes
38
39Commands and captured output are in `host-checks.log`.
40
41- Same regression with only the directory prerequisite removed in a separate
42 copied fixture: expected exit 2, missing output-directory error.
43- `make test-gpu-qmd-shared-clean-build`: exit 0,
44 `qmd shared: 112 checks, 0 failed: PASS`.
45- `make -j4 test-gpu-qmd-shared-clean-build`: the same PASS, no jobserver warning.
46- Direct `make OUT_DIR=<absent-directory> test-gpu-qmd-shared`: the same PASS.
47- `CC=false`: expected exit 2. The temporary directory was removed.
48- A missing TMPDIR: expected exit 2 before compilation.
49- `make -n test-gpu-qmd-shared-clean-build`: exit 0, commands printed,
50 no QMD binary executed. The temporary directory was removed.
51- `git diff --check`: exit 0.
52- A separate reviewer independently reproduced the fresh-output, parallel,
53 removed-prerequisite, compiler-failure, cleanup and dry-run controls.
54 No remaining finding in the final Makefile blob above.
55
56The negative control must use a separate fixture's default Makefile: changing
57only a `make -f` parent would leave the recursive make reading the original file.
58
59The initial review found that directly executing the binary outside recursive
60make broke dry-run behavior. The final recipe invokes the ordinary test target,
61so recursive make carries the dry-run flag through both build and execution.
62
63## Verification boundary
64
65Full `make test`, complete library build, native-artifact and zero-CUDA gates
66were NOT_RUN locally in this source-bounded fixture. The draft PR's exact-head
67ARM64 CI is the full-repository gate; its result is reported separately.
68No simulator result or physical GPU result is claimed by this receipt.
69No device, driver, live service, installation or deployment was touched.
70No existing receipt was edited.
71
72The repository publication scanner's self-test passed: measured output
73`SELFTEST PASS: planted 17 ... found 17; binary listed`.
74The changed-file publication scan is recorded in the pull request.