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.