Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/issues/08e8c19370e848f8 # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # [CUDA-MISSION C0] Freeze binary corpus, compatibility profile and physical runners Open · #184 · open 2026-10-29 12:13 UTC Imported from GitHub aien-dev/CUDApp#184, by drakestapleton drakestapleton wrote on 2026-10-29 12:13 UTC Parent: #183. Owns C0 PROFILE. Start immediately; hardware availability must be discovered before backend choice. ## Coordinator prompt Freeze a small, executable compatibility contract and reference corpus. Read #74/#40/#41/#76, Bridge tools/native and docs/NATIVE-ABI.md, Omega #888 and Bridge #29; resolve existing claims and ARCH-0042 placement. Record one integration owner and one independent verifier. Existing duplicate code stays in place per #106's later comment. ## Deliverables - A versioned, machine-readable profile with host ISA/ABI, OS/libc floor, toolkit/header/PTX versions, exact exported/imported symbols and lookup variants, module formats, kernel instructions/modifiers, numerical behavior, device features and dependency roles. - A minimal independently authored integer vector-add Driver API fixture, followed by a pinned stock driver-API CUDA sample. Inventory candidate NVIDIA cuda-samples via official sources, select the smallest compatible one, and record its exact source commit/build recipe. Build reference artifacts once on the reference path; SHA-256 the executable, all device payloads and relevant dependent libraries. Keep all executable/module bytes unchanged for replacement runs. - Separate ARM64 Spark artifacts from x86-64 cross-vendor artifacts. The latter must run on physical NVIDIA and AMD hosts of the same host ABI. Record real GPU model/PCI ID, gfx/ISA, driver/runtime versions, memory, ICD selection, permissions and reservation mechanism. Inventory Intel in parallel. If unavailable, record BLOCKED_HARDWARE and the precise missing runner; no purchase. - Required symbol inventory from ELF metadata plus actual dynamic lookup/call observations; static imports alone miss dlsym/cuGetProcAddress paths. Record synchronous/asynchronous calls, context state and allocation/launch ordering. - First profile explicitly classifies unsupported warp/shared-memory/atomic/graph/runtime/library features; later profiles add them only with tests. Fix input size, launch bounds, error behavior and exact integer arithmetic before implementation. - Reference artifacts are external qualification inputs. Honor CUDApp AGENTS/PROVENANCE restrictions on committing NVIDIA-generated PTX, cubins, binaries or listings. Commit owned source, allowed recipes, hashes and sanitized outputs; keep prohibited compiler outputs in the approved external test cache. Never import ZLUDA implementation/tests/data. No licensing changes implied. - Trace one prospective external real application for C6, recording runtime/library requirements and whether PTX is available. This is selection/inventory, not a claim it already runs. ## Reproducible math WolframLanguageEvaluator query, executed during planning: ``` <|"TailIndexIdentity" -> FullSimplify[ b Quotient[i,b] + Mod[i,b] == i, Element[{b,i}, Integers] && b > 0 && i >= 0], "TailCoverage" -> And @@ Flatten[Table[ Select[Flatten[Table[g b + t, {g,0,Ceiling[n/b]-1},{t,0,b-1}]], # < n &] == Range[0,n-1], {n,{1,31,32,33,63,64,65,255,256,257,1025}}, {b,{32,64,128,256}}]], "Wave64Partition" -> (Sort[Flatten[Table[32 w + l,{w,0,1},{l,0,31}]]] == Range[0,63])|> ``` Observed result: all three named values True. MODELED arithmetic only. The wave partition does not prove warp synchronization, divergence or memory-model compatibility. Freeze Wolfram-derived fixture outputs and rounding contracts with query/result before adding numerical tests. ## Acceptance - Another agent can rebuild the exact reference artifact from the recipe and verify hashes or identify reproducibility differences explicitly. - Required ABI and PTX inventory is complete for the chosen fixture, including runtime-discovered calls. - Host-ISA identity checks reject accidental ARM64/x86-64 comparisons. - A wrong artifact hash, missing required dependency and unsupported profile each fail admission. - Runner rows have observed availability or explicit blockers; model names alone never count as access. - The coordinator publishes the claim/dependency table and exact next ready issues. ## Delivery and closure Follow mission #183 , current repository instructions, latest issue comments and crumbs. Claim paths before work; keep existing owners and code locations. New first-party logic and semantic tests use seeded .om. Open a draft PR with actual changes, exact dependencies and failing-before/passing-after evidence. An independent reviewer must check the final integrated source and controls. Publish immutable commands, exits and source/compiler/artifact hashes. Source/host/emulator/physical states remain separate. No auto-close until this issue's gate passes; preserve serving, hardware reservations and existing driver state. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:21 UTC Recovered GitHub comment. Original comment `6507843448` CudaProfile lane (arch#240 item 3): C0 profile is implemented and has been exercised on the host only. The branch has no PR yet; omp-desk opens it. Branch `feat/cuda-c0-profile`, head `94f225d16374d1289909c0886a6c924eb31f8768`, parent main `cc0908bd`. Everything lives in `compat/cuda/`. - A Driver API fixture: `fixture/vadd_drv.c`, plus a hand-written `fixture/vadd_u32.ptx` (class A). - `build.sh`: a reproducible aarch64 and x86_64 build. - Frozen profiles: `profile-c0-aarch64-v1.tsv` and `profile-c0-x86_64-v1.tsv`. - `c0_check.om`: a seeded Omega admission checker, composed after `om/cache/digest.om` and built with the pinned omc, omega-mv@`e5b32567`, sha256 `2c824805…029f`. - `test.sh` / `make test-cuda-c0-profile`. How each acceptance item stands: - Rebuild + hash verification: EXERCISED (host). Two rebuilds came out byte-identical: - aarch64 `1bb9e8f6…4bca1c` - x86_64 `a03691b5…b2ae7c` - ptx `3f104fbf…739971` The checker recomputes SHA-256 itself. - ABI/PTX inventory: EXERCISED, statically. - The ELF side checks DT_NEEDED, undefined .dynsym with weak binding, and GNU verneed pairs. The PTX side checks directives, opcodes, special registers, the entry and its parameter count. Each must equal the profile exactly in both directions. - The checker's verneed output matches `readelf -V`. - Runtime-discovered calls are statically excluded: `lookup absent` dlopen, dlmopen, dlsym, dlvsym, cuGetProcAddress, cuGetExportTable. - The runtime binding trace (LD_DEBUG=bindings on GB10) is NOT_RUN (GPU gate). - Host-ISA refusal: EXERCISED. An aarch64 profile on RUNISA x86_64 is refused, and so is the reverse. `e_machine` is checked against the `host` row. - Wrong hash, missing dependency, unsupported profile: EXERCISED. All 15 negative controls exit 1, each for its own reason: - wrong exe; edited hash - dropped import; added import - `unsupported` status; schema 2; libc floor - lookup prefix - missing DT_NEEDED, from both the profile side and the exe side - `bar.sync`; a multi-statement line - Runner rows: present, each with an observed state or a blocker. - Spark host C0: AVAILABLE. - GB10 C3: BLOCKED_GPU_WINDOW (10de:2e12, NVRM 580.173.02). - AMD/Intel/x86 hosts: BLOCKED_HARDWARE. - Stock cuda-samples: BLOCKED_DECISION. Building them would mean running nvcc on NVIDIA's inputs, which falls outside PROVENANCE class B, so Drake has to decide. - Claim/dependency table: in the arch#240 status comment. Also run: `ptxas -arch=sm_121 vadd_u32.ptx -o /dev/null`, V13.0.88, rc 0 (class B, our own input, output discarded). Evidence is in `evidence/CUDA-C0-PROFILE-20261029/`. Not yet: QUALIFIED, MERGED, hosted CI (NOT_RUN), DCO (pending Drake). The GPU-arm commands are in `compat/cuda/README.md`. Sign in to comment